-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Amplify Storage remove folder #5841
Comments
This seems to be a AmplifyJS related issue, transferring to their repo. |
The way to delete all the files under a prefix is by listing the files first and then delete each key one by one. Buckets are not File systems, the bucket can be organized under prefixes so you can get the list of keys under the prefix but you cannot perform actions like the one you mention. |
@elorzafe It can be done in the web console though |
+1 |
I know we can't delete "directories" through the S3 API, as the concept of directories does not exist in S3. However, I was expecting Storage to abstract this limitation away from us by offering an option to do that. After all, it is a wrapper that should simplify file handling for us. |
Thank you all of the feedback on this feature request! We will provide updates when we have made some progress in creating in the abstraction needed here! |
this is really weird that years has passed and this feature is not yet available. the SDK even not throws error or warning, it's just does not work |
I can see many files for a given folder in s3, I can list the files with:
and I can download the files with:
The remove method doesn't through any error when I try to delete the folder, but it doesn't seem to work either.Is there a way to remove a folder and all files under it?
The text was updated successfully, but these errors were encountered: