bugfix (#166) delete_and_purge_bucket add recursive delete

This PR enhances the delete_and_purge_bucket method by enabling recursive traversal when listing objects, ensuring nested items and versions are deleted.
This commit is contained in:
Henk-Jan Lebbink 2025-06-17 14:14:17 +02:00 committed by GitHub
parent e53e151e3e
commit 1af3f72c12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -74,6 +74,7 @@ impl Client {
let mut stream = self let mut stream = self
.list_objects(&bucket) .list_objects(&bucket)
.include_versions(true) .include_versions(true)
.recursive(true)
.to_stream() .to_stream()
.await; .await;