After a global package has been uninstalled #277
Answered
by
ljharb
parrotdance
asked this question in
Question
-
I wrote a package which creates an external config file. I found that when this package is going to be uninstalled, user might forgot to delete this config file, I also have no chance to delete it before/after uninstall. So the question is: Is there any way (like sorts of hook) to do some cleanup work, before or after the uninstall command? |
Beta Was this translation helpful? Give feedback.
Answered by
ljharb
Nov 7, 2020
Replies: 1 comment 1 reply
-
Seems like the easiest would be to store the config file inside the package’s directory. What if the user wants to keep the config around, for later reinstalling? |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
parrotdance
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Seems like the easiest would be to store the config file inside the package’s directory.
What if the user wants to keep the config around, for later reinstalling?