How to Deactivate and Uninstall a Theme in WordPress
Make WordPress more secure by deleting all unused themes.
Background
A theme is a collection of files that work together to generate the appearance and behavior of a WordPress website. Installing a theme means placing its files in a specific location inside the WordPress directory, normally in the wp-content/themes folder. Uninstalling a theme means deleting these files.
Deactivate
We can install multiple themes, but only one theme can be active at a time. The active theme determines the layouts, colors, fonts, etc. used to present the data stored in WordPress.
There is no direct way to deactivate a theme. Each time we activate a theme, WordPress implicitly deactivates the previously active theme.
Uninstall
All inactive themes should be uninstalled to avoid vulnerabilities. Note that we cannot uninstall the active theme.
Step 1: Navigate to Appearance.
Step 2: Click on a theme to view its details.
Step 3: Click Delete.
Further reading
I recommend the other tutorials in this series to learn more about managing themes in WordPress.
- How to Install and Activate a Theme in WordPress
- How to Update a Theme in WordPress
- How to Enable Automatic Updates for a Theme in WordPress
- How to Roll Back a Theme in WordPress
- How to Block Theme Updates in WordPress
- How to Deactivate and Uninstall a Theme in WordPress
Comments