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

Delete everything in a bucket while cleaning #35

Closed
bohendo opened this issue Feb 21, 2024 · 1 comment
Closed

Delete everything in a bucket while cleaning #35

bohendo opened this issue Feb 21, 2024 · 1 comment

Comments

@bohendo
Copy link
Collaborator

bohendo commented Feb 21, 2024

s3.ListObjects only returns the first 1000 objects in a bucket so, when we run cloudexec clean, we only delete the first 1000 files from each bucket.

Cloudexec should handle pagination while cleaning buckets by getting 1000 objects, deleting them, getting 1000 more, etc until the bucket is entirely empty.

@bohendo
Copy link
Collaborator Author

bohendo commented Mar 15, 2024

resolved by #43

@bohendo bohendo closed this as completed Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant