Skip to content

Tutorials WordPress Beginner1 min read

How to Disable WordPress Plugins Without Admin Access

Locked out of wp-admin? Disable one or all WordPress plugins using cPanel File Manager, SFTP, WP-CLI or phpMyAdmin — without losing settings.

By ZSOLNET Editorial Team Updated

Key takeaways

  • Renaming a plugin's folder deactivates it instantly.
  • Renaming the whole plugins folder disables every plugin at once.
  • Plugin settings stay in the database and return when you reactivate.

With cPanel File Manager

  1. Open File Manager and go to public_html/wp-content/plugins.
  2. To disable one plugin, right-click its folder → Rename → add .off to the end.
  3. To disable all plugins, rename the plugins folder itself to plugins.off, then create a new empty folder called plugins.
  4. Log in to wp-admin. WordPress notices the missing plugins and deactivates them.

To bring them back, restore the original folder names and reactivate each plugin from Plugins.

With WP-CLI over SSH

cd ~/public_html
wp plugin list                  # see what's active
wp plugin deactivate some-plugin
wp plugin deactivate --all

With phpMyAdmin

  1. Open phpMyAdmin and select the WordPress database.
  2. Open the wp_options table (your prefix may differ) and find the row where option_name is active_plugins.
  3. Edit it and set the value to a:0:{}. All plugins are now inactive.

Frequently asked questions

Which plugin is breaking my site?

Disable all plugins, confirm the site works, then reactivate them one by one in wp-admin until the problem returns.

Do I lose data by disabling a plugin this way?

No. Only uninstalling a plugin through wp-admin can remove its data, and only if the plugin is written to do so.

Share X LinkedIn Facebook

Log in to your account

Manage your domains, hosting and invoices in one place.

Secure connection straight to the ZSOLNET client area.

No account yet?