If you're unable to access your WordPress admin dashboard and need to deactivate all plugins, here are two safe, reliable methods based on WordPress.org documentation and community best practices:
✅ Method 1: Rename the Plugins Folder (Recommended for Most Users)
This method preserves all plugin settings and is safer than editing the database.
Steps:
- Connect via FTP (e.g., FileZilla) or use your host’s File Manager (in cPanel/Plesk).
- Navigate to
/wp-content/in your WordPress root directory. - Rename the
pluginsfolder toplugins.hold(orplugins.deactivated). - Visit your site or try logging into
yoursite.com/wp-admin.
→ WordPress will automatically deactivate all plugins since it can’t find them. - Once logged in, rename the folder back to
plugins. - Go to Plugins > Installed Plugins and reactivate plugins one by one to identify any causing issues.
💡 Why this works: WordPress checks for active plugins on every load. If the folder is missing, it deactivates them silently—but keeps settings intact in the database.
✅ Method 2: Clear Plugin Data in phpMyAdmin (For Advanced Users)
Use this only if you’re comfortable with databases.
Steps:
- Open phpMyAdmin (via your hosting control panel).
- Select your WordPress database.
- Find the
wp_optionstable (prefix may vary, e.g.,wp123_options). - Look for the row where
option_name=active_plugins. - Edit that row and set
option_valueto:php - Save. All plugins are now deactivated.

