What's the appropriate method to permanently delete a custom theme that I've used?

I know drupal memorizes a theme in it's database (for example it still remembers block arrangements for that theme when enabled, after being disabled, etc.), even after upgrades.

So what's the correct way to delete a theme so that drupal knows is permanently deleted, and doesn't "keep it in memory/database", expecting it to be used/enabled again?

Comments

notarealperson’s picture

AFAIK, if you physically delete it from your site's server, it won't show up as an option anymore.

jason342’s picture

That is true, but Drupal still will remember that theme, even when deleted off the server. If I were to place that theme back on the server again, Drupal still has it in its "memory". And when enabled, Drupal will remember its block arrangements, for example.

Just wondered if there was a way where it's deleted in a official way where Drupal doesn't expect it anymore.

boysetsfire’s picture

That's right, i have the same Probleme....

so...what is the right way to delete a drupal theme, completly?? Anyone??

asinc’s picture

i'd like to be able to completely un-install the theme and all it's associations...

popzkg’s picture

I have the same problem..

texas-bronius’s picture

I recall having run into the same problem before (physically deleting the custom theme from sites/all/themes/ was not sufficient, as creating a new theme with the same machine name would fail), but I can't reproduce it now.

I just tried creating a new subtheme (with zen + zenophile, actually), set it as active+default, then I unclicked active and set garland back to default, deleted the folder under sites/all/themes, and recreated with no problem.

Can you provide steps to reproduce?

--
http://drupaltees.com
80s themed Drupal T-Shirts

xboxhaxorz’s picture

interesting did not think about it b4

atavision’s picture

Could someone please lat out some basic instructions for completely removing a custom theme from drupal.

I had the problem of accidentally installing an empty zip file which drupal accepted, but of course was empty
hence no theme. So I manually removed the offending folder from sites/all/themes and tried to re-install
a fully loaded zip file with the same custom theme (I'm talking about Zen). each time I tried to install the
new theme, drupal told me it was already installed. So drupal appears to be remembering the Zen folder
from somewhere other than the sites/all/themes folder?

anyone got an idea on this?

texas-bronius’s picture

atavision- try removing the zen theme which you correctly added, leaving the sites/all/themes folder empty (or at least without the theme by the name you wish to use), then visit the themes config page again (you'll see that the offending theme is definitely not listed there anymore), and then place the zen theme back as it was before. I think that should do it-- visiting the themes config pages gives Drupal its chance to rescan theme files.

--
http://drupaltees.com
80s themed Drupal T-Shirts