How to Delete a WordPress Theme (Safely)
Delete a WordPress theme only after another theme is active: open Appearance › Themes, click the inactive theme, choose Delete and confirm. WordPress will not delete the live theme. Keep the parent of any active child theme and one default Twenty theme as a fallback; your posts, pages and media are not affected.
For WordPress site owners cleaning up unused themes after a redesign or demo import without breaking the live site.
knowledge
- Read time
- 4 min
- Sections
- 7
- Updated
- 14 Nov 2026
- Written by
- WebJi® team
Last editorial update: 14 November 2026.
Should you delete unused WordPress themes?
Yes: delete inactive themes you will not switch back to, but keep the active theme, the parent of an active child theme and one default Twenty theme as a fallback. WordPress does not load an inactive theme on page views, so deleting one rarely speeds up the site; the benefit is fewer unpatched PHP files sitting in wp-content/themes.
| Theme | Keep or delete | Why |
|---|---|---|
| Theme marked Active | Keep | It renders the site; WordPress will not delete it |
| Parent of an active child theme | Keep | The child loads most templates from it |
| Latest default Twenty theme | Keep one | WordPress falls back to it if the live theme breaks |
| Old trials, demo imports, unused child themes | Delete | Code on the server that no longer gets updates |
How do you find which WordPress theme is active?
Open Appearance › Themes: the live theme is listed first and labelled Active, and its card has no Delete link. Themes have no Deactivate button the way plugins do; you stop using one by activating another.
The folder name under wp-content/themes is the theme's slug, which is what file tools and WP-CLI use. If the theme you want to remove is the active one, switch first using the change WordPress theme guide.
How do you delete a WordPress theme from the dashboard?
In Appearance › Themes, click the inactive theme to open Theme Details, choose Delete at the bottom right, and confirm. This works on any self-hosted WordPress, including sites on WebJi® WordPress hosting.
- Confirm the theme you want to remove is not labelled Active.
- Click its card to open Theme Details.
- Click Delete and confirm the prompt.
- Reload Appearance › Themes: the card is gone and the public site still shows the active theme.
If WordPress reports it could not fully remove the theme, usually because of file permissions, delete the folder with File Manager instead. On WordPress.com, catalogue themes are not files in your account, so Delete often does not appear; uploaded themes can still be removed once inactive.
How do you delete a WordPress theme with cPanel File Manager or FTP?
Go to the site's document root, open wp-content/themes, and delete only the folder of the inactive theme. Use this route when the dashboard fails or you cannot log in; the cPanel File Manager guide shows where to find the folder.
- Match the folder name to the inactive theme's slug; leave the active theme's folder alone.
- Delete that one folder. Removing the live theme's files with no default theme installed can leave the site blank.
- Open the homepage and Appearance › Themes to confirm both still load.
How do you delete a WordPress theme with WP-CLI?
List the themes to confirm the slug and status, then run wp theme delete with the folder name. WP-CLI refuses to delete the active theme unless you add --force, which you should never need.
wp theme list --fields=name,status,version
wp theme delete twentytwentytwo oldtheme-demo
--all removes every theme except the active one, according to the WP-CLI documentation, so do not use it on a site running a child theme: it would delete the parent too. Name the themes individually instead. WP-CLI needs SSH access to the account.
Which files must stay when you use a WordPress child theme?
Keep the parent theme installed for as long as its child theme is active, because the child inherits most templates, styles and functions from it. Do not rely on the dashboard to stop you: the safe rule is to check the Template line in the child's style.css and leave that parent folder in place.
Any other inactive theme, including a child you no longer use, can go. How the parent link works is explained in the WordPress child theme guide.
What changes after you delete a WordPress theme?
Only the theme's files go; posts, pages, media, plugins and page-builder layouts such as Elementor designs stay in the database. Deleting a theme does not uninstall WordPress or remove imported starter-template pages.
- Widgets and menus: items placed in the old theme's widget areas may drop off; reassign them under the active theme.
- Customizer settings: the deleted theme's options stay in the database but do not restyle the active theme. Reinstalling the theme later can pick them up again.
- Security scans: if a scanner flagged the old theme, rescan after deletion to clear the warning.
Frequently asked questions
Why is there no Delete button on my theme?
Either the theme is active, your user role cannot delete themes, or the site is a multisite network where themes are managed under Network Admin › Themes. On WordPress.com, catalogue themes cannot be deleted at all because they are not stored in your account.
How do I delete the Astra theme without losing my pages?
Activate another theme first, then delete Astra from Appearance › Themes or remove the astra folder. Pages and Elementor layouts stay in your page list. Check headers, footers and menus afterwards, because those were styled by Astra and will now follow the new theme.
Can I get a deleted theme back?
Reinstall it from the theme directory or the vendor's ZIP, or restore the folder from a backup if you had customised its files. Customizer options usually remain in the database, so the design often returns when the same theme is reactivated.
Should I keep more than one default theme?
No. One current Twenty theme is enough as a fallback. Older default themes such as Twenty Twenty-One are just more files to update; preview your spare once so you know it activates cleanly.
Last editorial update: 14 November 2026.
Ready to get started with WebJi®?
Join 12,000+ businesses across India and overseas. INR pricing, 18% GST shown before payment and 24/7 email support in Hindi and English — average first reply under 60 minutes.