Page 1 of 1

Feature request: Delete theme

Posted: Wed Mar 11, 2015 7:24 pm
by Don Chambers
I know I can delete themes by deleting the corresponding folder via ftp.... but that still leaves everything in the options table. How about a button that not only deletes the files, but also deletes everything from the options table, so there is no trace of ever having used the theme?

This would be especially helpful when developing new themes, so I can purge everything from the table, and see what a fresh install would look like again. Also helpful when experimenting with several different themes. For instance yesterday, I must have installed about 2 dozen different themes. A one-button click solution would be nice to have.

Is this possible?

Re: Feature request: Delete theme

Posted: Thu Mar 12, 2015 10:07 am
by garvinhicking

Hm, not sure we really need a maintenance option for that, because it's very developer centric and doesn't really occur a lot for normal users to matter.

I'd rather suggest you simply use a tool like adminer or phpMyAdmin to execute:

Code: Select all

DELETE FROM serendipity_options WHERE okey = 't_XXX'
(replace XXX with the templatename)

For the end user I personally find it helpful to preserve options, if a template is later on re-used, to have the same options like before. It doesn't really impact a database to have a few hundred rows lieing around... even though I understand the intention for it. ;)

Re: Feature request: Delete theme

Posted: Thu Mar 12, 2015 3:01 pm
by Don Chambers
Thanks - I'll use phpmyadmin for that.