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

Unable to delete folder #770

Open
hdep opened this issue Nov 5, 2024 · 3 comments
Open

Unable to delete folder #770

hdep opened this issue Nov 5, 2024 · 3 comments

Comments

@hdep
Copy link

hdep commented Nov 5, 2024

Hello,

I need to delete a folder on my S3 bucket, the command run without errors but folder remains.
Is this a limitation of the tool ? Seems that with other tools this is available feature.

**Description of issue **

  • List folder
root@server:/tmp# s5cmd ls s3://archives/folder/folder2/
                                  DIR subdir1_20241028/
                                  DIR  subdir2_20241104/
  • Delete the subdir1_20241028 folder
root@server:/tmp# s5cmd rm s3://archives/folder/folder2/subdir1_20241028/
rm s3://archives/folder/folder2/subdir1_20241028/
  • verify folder is still present.
  • I try to use wildcard for folder name I got same issue

version

root@server :/tmp# s5cmd version
v2.2.2-48f7e59
@rmanus
Copy link

rmanus commented Nov 5, 2024

I ran into the same issue - It looks like s5cmd does not handle object keys ending with a slash properly.

@hdep
Copy link
Author

hdep commented Nov 5, 2024

thanks for sharing, did you identify a bypass for this ?

@rmanus
Copy link

rmanus commented Nov 5, 2024

Unfortunately not with s5cmd

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

2 participants