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.

Screen indicating how to view the details of an installed theme.

Step 3: Click Delete.

Link to delete a theme.

Further reading

I recommend the other tutorials in this series to learn more about managing themes in WordPress.