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

Bulk delete files in folder or delete entire folder with files. #47

Open
ANulikJan opened this issue May 23, 2022 · 0 comments
Open

Bulk delete files in folder or delete entire folder with files. #47

ANulikJan opened this issue May 23, 2022 · 0 comments

Comments

@ANulikJan
Copy link

Hi there. Is there a way we can delete all the content of the given folder or the entire folder with one request?

For example I want to delete the "main/shipping_labels/test/555/" folder, or all files inside it.

The suggested method "delete" is not working for the folder. It accepts only the filename, or I can delete the folder if it is empty.

I have tried to delete the content in this way, but it is still not working -
$s3->commands()->delete("main/shipping_labels/test/555/*")->execute();

Please give an advice.

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