A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://stackoverflow.com/questions/6521931/how-to-delete-documentation-from-pypiappears below:

python - How to delete documentation from PyPi

I just noticed that there is some ancient version of documentation accessible directly at http://pypi.python.org/pypi/gensim (right at the top, under Package Documentation). I may have tested that feature when first trying PyPi, ages ago.

Now real documentation for my package is maintained elsewhere. I'd like to get rid of that PyPi link and that silly page. Is there a way?

So far, I managed to "re-upload" a zip file containing an empty index.html, through the PyPi package admin interface. I thought that would at least provide an empty page to users unfortunate enough to click on the PyPi documentation link. Any way to delete it completely?

Neither "upload nothing" nor "upload an empty zip" work, PyPi checks for a zip and it must contain an index.html file.

asked Jun 29, 2011 at 14:05

RadimRadim

4,27633 gold badges2929 silver badges3838 bronze badges

3

Just create a new index.html file with a link to the new documentation or even a redirect:

<html>
    <head>
        <title>A web page that points a browser to a different page after 2 seconds</title>
        <meta http-equiv="refresh" content="2; URL=http://www.example.com">
        <meta name="keywords" content="automatic redirection">
    </head>
    <body>
        {PACKAGE_NAME}'s documentation is maintained elsewhere.
        You will be redirected to the new documentation within 2 seconds.
        If the browser does not automatically redirect you, you may want to go to <a href="http://www.example.com">the destination</a> manually.
    </body>
</html>

Now zip it and go to http://pypi.python.org/pypi. Then login and go to your package's admin page. There you will find a button to upload the zipped documentation:

answered Jun 30, 2011 at 7:50

rubikrubik

9,1541010 gold badges6464 silver badges9494 bronze badges

1

Pypi recently added an option to destroy the documentation.

Log into your package and there is now an option to Destroy Documentation.

answered Jan 25, 2017 at 16:01

1

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4