Skip to content

How to Delete a WordPress Theme in the WordPress Dashboard

You can quickly delete any WordPress theme inside WordPress by following:

  1. Log into your WordPress dashboard as an administrator.
  2. In the dashboard panel, select Appearance > Themes. On this screen, you’ll see all themes that are installed on your website. The first theme listed is your active theme.
  3. Hover over the theme you want to delete and click Theme Details. Note that you cannot delete your active theme. If you want to delete your active theme, you’ll need to first activate another theme.
  4. In the window that appears, click the Delete button in the bottom right corner.
  5. You’ll see a warning asking if you really want to delete the theme. Click OK.

This will delete the theme from your WordPress installation and your server. If you accidentally deleted the wrong theme, no problem — just re-install your theme from the WordPress themes directory or re-upload it from your backup.

How to Resolve the Error: “Deletion failed, the theme requested does not exist”
After completing the steps above, you may encounter the error message: “Deletion failed, the theme requested does not exist”.

This error is most likely occurring because WordPress failed to remove all contents of the theme file. The solution is to remove the theme files through either the FTP method or the hosting panel method, both described below.

How to Delete a WordPress Theme Via FTP

If you lack WordPress admin privileges, you can also delete a theme by accessing your server files with the File Transfer Protocol (FTP. FTP is a method for modifying files on a remote computer, in this case the server that hosts your WordPress site.

  1. Connect to your web hosting server with your FTP client of choice.
  2. Locate and open the wp-content folder, then open the themes folder.
  3. Inside the themes folder, find the folder of the theme you want to delete. Make sure this theme is not the currently active theme on your website.
  4. Right-click the folder of the theme you want to delete, then click Delete.
  5. Your FTP client may warn you about deleting the file. If so, confirm.

This will delete the chosen theme from your WordPress installation.

How to Delete a WordPress Theme in Your Hosting Panel

If you have access to your hosting panel, you can delete your theme files this way as well.

  1. Log into your hosting account.
  2. From your hosting panel dashboard, find the file manager option.
  3. Locate and open the wp-content folder, then open the themes folder.
  4. Inside the themes folder, find the folder of the theme you want to delete. Make sure this theme is not the currently active theme on your website.
  5. Right-click the folder of the theme you want to delete, then choose the delete option.

This will delete the chosen theme from your WordPress installation.

What to Do After Deleting a WordPress Theme

The process of deleting a theme is straightforward, but you might not be finished just yet. Check your WordPress files for remnants of the theme you deleted — there still may be leftover files consuming server space.

The two most important aspects to address here are media files and widgets. Starting with images, check your Media Library (under Media in the left side panel) for images and other media files associated with your old theme, and delete them.

Next, delete any leftover unused widgets from the old theme. Under Appearance > Widgets, move old widgets to the Inactive Widgets section, then click Clear Inactive Widgets to delete them.

With your unused WordPress theme deleted, your website will be more secure, lighter, and faster on the back-end. Plus, it’s nice to have a bit of extra breathing room, right?

One final note: Be sure to keep the backup you created before uninstalling your theme, just in case you discover some unforeseen issue and you need to undo your changes.

Source: blog.hubspot

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: