How to delete files and folders on formula uninstall? #567
Replies: 2 comments
-
Anything under the If you write outside of this it won't be deleted, there is no uninstall methods. |
Beta Was this translation helpful? Give feedback.
-
To expand on Sean's point: if it's not something that's meant to be modified by users, stick it under But if it's something that your users would be expected to customize, consider sticking it under
All of the above can be done in your |
Beta Was this translation helpful? Give feedback.
-
I have written a formula for a go-lang app, which uses def post_install to make a directory in /usr/local/share & copy data there.
How do I remove files and folders created during install, when the user uninstalls the formula?
You can do this with uninstall delete: ["~/.blah.json"] in casks, but I can't see an equivalent in formula.
Beta Was this translation helpful? Give feedback.
All reactions