Skip to content

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

@ANulikJan

Description

@ANulikJan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions