We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55390c5 commit c7d5b43Copy full SHA for c7d5b43
src/manage/uninstall_command.py
@@ -108,6 +108,14 @@ def execute(cmd):
108
for _, cleanup in SHORTCUT_HANDLERS.values():
109
if cleanup:
110
cleanup(cmd, [])
111
+ # Clean up other lingering directories
112
+ LOGGER.info("Purging remaining files")
113
+ for d in cmd.install_dir.listdir():
114
+ if d.is_dir():
115
+ LOGGER.verbose("Removing %s", d)
116
+ rmtree(d, after_5s_warning=warn_msg.format("remaining files"))
117
+ if any(cmd.install_dir.listdir()):
118
+ LOGGER.warn("Unable to fully remove %s.", cmd.install_dir)
119
LOGGER.debug("END uninstall_command.execute")
120
return
121
0 commit comments