Updated: 12 November 2026 · Applies to: WordPress 7.1.4, WP-CLI 2.12.0

To switch off a WordPress plugin, go to Plugins › Installed Plugins and click Deactivate under its name. To remove it completely, click Delete, which appears once the plugin is inactive, and confirm. If a plugin has locked you out of the dashboard, rename its folder in wp-content/plugins instead (method 3).

Deactivate or delete: which one do you need?

  • Deactivate stops the plugin from running. Its files and settings stay, so you can switch it on again later. Use this to test whether a plugin causes a problem.
  • Delete removes the plugin's folder. If the plugin ships an uninstall routine, WordPress runs it first and the plugin's own data (settings, custom tables) can be removed too. WordPress warns you in that case: "Are you sure you want to delete plugin name and its data?"

Take a backup before deleting a plugin that stores important data, such as a forms, shop or membership plugin.

Method 1: from the WordPress dashboard

  1. Log in at https://example.com/wp-admin with an administrator account.
  2. Open Plugins › Installed Plugins.
  3. Find the plugin and click Deactivate under its name. It moves to the inactive list and stops running at once.
  4. To remove it, click Delete under the same plugin and confirm the message.

To handle several plugins at once, tick their boxes, choose Deactivate or Delete in the Bulk actions list and click Apply.

If Delete is missing, the plugin is still active, or another plugin needs it: WordPress then shows "You cannot delete this plugin as other plugins require it." Deactivate and delete the dependent plugin first.

Method 2: with WP-CLI over SSH

Go to the WordPress folder and list the plugins with their folder names:

cd ~/public_html
wp plugin list

Deactivate one plugin (use the name from the first column):

wp plugin deactivate hello

Output:

Plugin 'hello' deactivated.
Success: Deactivated 1 of 1 plugins.

Delete its files:

wp plugin delete hello

To deactivate, run the plugin's uninstall routine and delete it in one go:

wp plugin uninstall akismet --deactivate

Output:

Deactivating 'akismet'...
Plugin 'akismet' deactivated.
Uninstalled and deleted 'akismet' plugin.
Success: Uninstalled 1 of 1 plugins.

To switch off every plugin while you troubleshoot:

wp plugin deactivate --all

If a broken plugin stops WP-CLI itself from loading, add --skip-plugins to the command, for example wp plugin deactivate broken-plugin --skip-plugins. New to WP-CLI? See How to install WP-CLI in WordPress.

Method 3: when you cannot reach the dashboard

Use this when a plugin causes a white screen or a "critical error" message.

  1. Open cPanel File Manager, or connect with SFTP or FTP.
  2. Go to public_html/wp-content/plugins/.
  3. Rename the plugin's folder, for example classic-editor to classic-editor.off. Over SSH:
    mv wp-content/plugins/classic-editor wp-content/plugins/classic-editor.off
  4. Log in to /wp-admin and open Plugins. WordPress cannot find the plugin file any more, so it deactivates the plugin and shows "The plugin ... has been deactivated due to an error: Plugin file does not exist."
  5. Rename the folder back to its original name. The plugin is now listed as inactive, and you can delete it or update it from the dashboard.

Open the Plugins page before you rename the folder back. In our test, renaming the folder and back without loading the Plugins page in between left the plugin active; with the page loaded in between, it came back as inactive.

If you do not know which plugin is at fault, rename the whole plugins folder to plugins.off, open the Plugins page, rename it back and then activate the plugins one by one. WordPress White Screen or Critical Error: How to Find and Fix the Cause explains how to find the cause.

A plugin that has no Deactivate link

Plugins in wp-content/mu-plugins are listed under Must-Use; WordPress says "Files in the mu-plugins directory are executed automatically." They cannot be switched off from the dashboard. Remove or rename the file in that folder instead, and check with your developer or host first, because hosts and caching tools often place files there on purpose.

Related: How to Manage Plugins in WordPress: Install, Update, Deactivate and Delete and How to Force Update or Reinstall a WordPress Plugin Without Errors.

Official documentation: Managing Plugins on wordpress.org and wp plugin uninstall.

Related services

Web hosting

shared hosting on Virtualmin with NVMe storage, free SSL and email.

Managed cPanel VPS

cPanel included; we handle updates, security and monitoring.

Hire an expert

engineers per 15 minutes, per hour or per month, with no contract.

Was this answer helpful?

Still stuck? Open a ticket