Skip to content

Automatically delete old releases #11397

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
schmidt-sebastian opened this issue May 16, 2022 · 4 comments
Open

Automatically delete old releases #11397

schmidt-sebastian opened this issue May 16, 2022 · 4 comments

Comments

@schmidt-sebastian
Copy link

What's the problem this feature will solve?
We are hitting the size limit on our project. We are uploading nightly releases to PyPi for customer to install and validate. We would like a way to automatically delete old releases.

Describe the solution you'd like
We would like one of two solutions:

  1. The ability to set a retention policy for our project. Older releases should be automatically purged.
  2. The ability to delete releases programmatically (i.e. via Curl). Right now, deleting a release via the UI requires two clicks and an explicit confirmation.
@kairoaraujo
Copy link
Contributor

A question as a new contributor: Could it be implemented in the JSON API? 🤔

@alkino
Copy link

alkino commented Nov 10, 2022

We are also interested by this feature for exactly the same reason.

The first way seems easier for us.

It could be:

  • No more than X release in the same time
  • No release older than X days / months / years

Maybe we can imagine a new tick option: "This release is a nightly", and so it enables such options (to protect users to remove not-nightly releases).

Regards

@octachrome
Copy link

octachrome commented Oct 5, 2023

And we are also interested for the same reason.

Today it is possible although not simple to automate this, e.g. https://github.com/arcivanov/pypi-cleanup. But that will stop working at the end of 2023, when all PyPI accounts will require 2-factor authentication. 2FA cannot easily be automated.

Hopefully the REST API to delete releases will be available before 2FA becomes mandatory: #12934

@artanokhov
Copy link

A large number of projects publish their nightly packages on daily basis that need to be rotated.
Before forcing 2FA, this could be done using the 'requests' + any page parsing modules (e.g. https://github.com/arcivanov/pypi-cleanup). Now we can't proceed with automation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants