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

Remove from s3 via list of s3 URLs #16

Open
heuermh opened this issue Sep 17, 2024 · 0 comments
Open

Remove from s3 via list of s3 URLs #16

heuermh opened this issue Sep 17, 2024 · 0 comments

Comments

@heuermh
Copy link
Owner

heuermh commented Sep 17, 2024

Might it be worth adding rm command that reads a list of s3 URLs to delete from stdin or from a file argument?

$ coop rm --urls s3-urls-to-delete.txt

Compare to bash

$ cat delete-s3-urls.sh
#/bin/bash
while IFS= read -r line; do
    aws s3 rm "$line"
done < "$1"

$ ./delete-s3-urls.sh s3-urls-to-delete.txt
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