So you have installed a python application using the setup.py file, and you are trying to figure out an easy way to uninstall it without having to remove all the files manually? If that is your case then read on.


First, you need to record all the installed files using the --record option like so:

python setup.py install --record InstalledFilesList.txt

This command performs  two actions:

  1. It installs the application
  2. It creates a file InstalledFilesList.txt that contains a list of installed files.
Now that you have created your list, you can remove your application using this command:

cat InstalledFilesList.txt | xargs rm -rf

Inspired by this StackOverflow answer

Comments