How to Delete Unused WordPress Themes and Plugins via cPanel
How to Delete Unused WordPress Themes and Plugins via cPanel
Removing unused themes and plugins from your WordPress site is essential for security, speed, and overall website health. This guide explains how to safely delete them manually using cPanel.
Why Delete Unused Themes and Plugins?
- Security: Old themes and plugins can have vulnerabilities that hackers exploit.
- Performance: Removing unnecessary files reduces server clutter and can improve site speed.
- Maintenance: Keeping your WordPress installation clean makes updates easier and avoids conflicts.
Important Note Before Deleting
Always backup your website before deleting themes or plugins to avoid accidental loss of data or functionality.
Step 1: Log in to Your cPanel Account
Go to https://yourdomain.com/cpanel
and enter your username and password to access the control panel.
Step 2: Open File Manager
In the cPanel dashboard, click on File Manager under the Files section.
Step 3: Navigate to WordPress Themes or Plugins Folder
- For themes: Open
public_html/wp-content/themes/
- For plugins: Open
public_html/wp-content/plugins/
Step 4: Identify Unused Themes and Plugins
Check which themes and plugins are not active or needed. You can verify the active theme and plugins in your WordPress dashboard under Appearance > Themes
and Plugins > Installed Plugins
.
Step 5: Delete the Unused Theme or Plugin Folder
- In File Manager, right-click the folder of the unused theme or plugin.
- Select Delete.
- Confirm deletion and choose to skip the trash (permanent delete) if you want to free up space immediately.
Note: Make sure you do NOT delete the active theme or any plugin currently in use.
Step 6: Verify Deletion in WordPress
Log in to your WordPress admin dashboard and check that the deleted themes or plugins no longer appear under the respective sections.
Tips for Safe Cleanup
- Deactivate plugins in WordPress dashboard before deleting their folders via cPanel.
- Do not delete the default WordPress themes (e.g., Twenty Twenty-Three) unless you are certain.
- Regularly review and clean up unused themes and plugins to maintain optimal site health.