How to remove a package from Pypi

Viewed 29030

How do I remove a package from Pypi?

I uploaded a package to Pypi several months ago. The package is now obsolete and I'd like to formally remove it. I cannot find any documentation on how to remove my package.

3 Answers
  • Login.
  • Go to your packages.
  • Check the "remove" checkbox for the particular package.
  • Click "Remove" button.

This is not a really good idea, because all users of the previous package will see their install fails.

If you want to deprecate a package, what you can do is publish a last release with a README pointing to the new package. I did that for python-cli-ui, which is replaced by cli-ui

If you want to get fancy you can also:

  • Add a warning printed when setup.py is run
  • or at import time
  • or replace the package by a dummy one that depends on the new name.
Related