Skip to content
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

After downloading a file, how does one delete it so it doesn't just show as expired? #123

Open
siggemannen opened this issue Oct 18, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@siggemannen
Copy link

siggemannen commented Oct 18, 2024

Is your feature request related to a problem? Please describe.

The old API had this possibility, now the files seem to lie around forever which triggers my latent OCD and probably affects the performance of the system with all those files lying around

Describe the solution you'd like

An API or whatever method to delete the request file by ID

Describe alternatives you've considered

Trying to figure out how website deletes stuff and try to implement it manually

@siggemannen siggemannen added the enhancement New feature or request label Oct 18, 2024
@zhoumouse
Copy link

Similar concern. I have written a code to delete finished request, but it doesn't work.

#!/usr/bin/env python3
import cdsapi
rid = '8e17c265-1e3d-4e07-bfdb-3121d1bd20d4'
client = cdsapi.Client()
task_url = '/'.join([client.url,'tasks',rid])
client.session.delete(task_url)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants