Deleting Themes

Events happening in the community are now at Drupal community events on www.drupal.org.
Christopher's picture

A simple question. I'm hoping to learn how to delete uploaded themes that aren't being used pertaining to Drupal 7. Thanks, Chris

Comments

Proper Way to Delete Themes

cedewey's picture

Hi Chris,

If it's a core theme that shipped automatically with D7 it's best to leave it there, even if you don't intend to use it. For those you have uploaded, just go ahead and delete the entire directory and clear your cache afterwards (found under config/development/performance). Also, it's best practice to place all contributed themes under sites/all/themes if you're not doing so already. Hope that helps!

-Clayton

Proper Way to Delete Themes

Christopher's picture

Thanks Clayton, I wasn't able to follow your directions. When you say delete the entire directory, I couldn't find the directory. Could you please give me some more direction in finding the directory. Thanks.
Chris

Locating the theme folder

cedewey's picture

Sure!

There are two types of themes- core themes that ship with Drupal when you install it and contributed themes, themes which you install yourself from drupal.org or somewhere else.

A typical Drupal installation will be structured this way

Core Themes
drupal (root folder) -> themes -> bartik, engines, garland, seven, stark

Contributed Themes
drupal (root folder) -> sites -> all -> themes -> yourinstalledtheme

Now of course this is how you should install your themes. So it's possible that if someone else installed the theme on the site they put it in drupal->themes. The directory should just be the same name as the theme you're using.

If this still doesn't make sense, feel free to message me directly and I can provide screenshots of what I'm talking about or clarify anything else.

Directory Issue

CoveRidge's picture

I'm having a similar issue finding the directory for my theme. Is there a way I could see those screen shots you mentioned pretty please?

-Kodi

Screenshot of Themes Directory

cedewey's picture

Hi Kodi,

Is the theme you are looking for one that came with Drupal (core) or downloaded from Drupal.org (contributed)?

If it is a core theme such as Bartik it will live in the Themes

If it is a contributed theme it will live in Site -> All -> Themes

I can't attach a screenshot to a comment, but if you send me a message with your email I can could send one to you.

Hope that helps,
Clayton