Delete themes

Hi. I guess it’s obvious but I can’t find how I can delete themes after testing them. Thanks for your answers.

Hey @Regulus, Welcome to the Local Community Forums!

This is an interesting idea, but probably won’t be included within Local Core. Still, you probably could explore creating an Add-on for this.

To your specific question of how to delete a theme after you test it, you have a couple of options:

  1. Right-click on the site in Local and select “Reveal in Finder.” From there, navigate to wp-content/themes and delete any themes that you no longer want.

  2. You can also go about this with a terminal by right-clicking on the site in Local and selecting “Open Site Shell.” From there you can list what themes are available as well as delete them with these wpcli commands:

    wp theme list
    wp theme delete theme-name
    

One of the things that I like about using the terminal is that it helps prevent you from accidentally deleting the active theme. You can also change the active theme within the terminal so that you can really cleanly delete that theme that you want to:

delete-wp-theme-from-terminal

Hi Ben and thanks for your very precise answer… and your big sense of humor !
I found the delete mark on the themes pics just after having sent my question. Shame on me !
Best regards.

1 Like