Skip to main content
Topic: Package Question - How to remove directories on uninstall? (Read 2859 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Package Question - How to remove directories on uninstall?

If I say want to create a subdirectory under $themedir/css the package manager happily does that if I just put the desired install location to $themedir/css/newdir

However, on uninstall it does not remove these directories after they're empty.  Is there an equivalent to remove-file for a directory?

Re: Package Question - How to remove directories on uninstall?

Reply #1

You should be able to use the tag
Code: [Select]
remove-dir
in package-info.
Something like:
Code: [Select]
<remove-dir name="$themedir/css/newdir" />
unless it's broken...
Bugs creator.
Features destroyer.
Template killer.

Re: Package Question - How to remove directories on uninstall?

Reply #2

Not broken I just didn't know the command and guessed remove-directory instead of remove-dir.  Thanks for the quick reply.

Re: Package Question - How to remove directories on uninstall?

Reply #3

 emanuele takes note there is a lot to document...
Bugs creator.
Features destroyer.
Template killer.

 

Re: Package Question - How to remove directories on uninstall?

Reply #4

Heh.  Yeah documentation is definitely not the exciting part of things.