SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
not empty only if there are actual files in the bucket
Chris Lu8e8edd77062b
diff --git a/weed/s3api/s3tables/handler_namespace.go b/weed/s3api/s3tables/handler_namespace.goindex 9cf0f7809b..fe622daa77 100644--- a/weed/s3api/s3tables/handler_namespace.go+++ b/weed/s3api/s3tables/handler_namespace.go@@ -557,8 +557,14 @@ func (h *S3TablesHandler) handleDeleteNamespace(w http.ResponseWriter, r *http.Rreturn err}if entry.Entry != nil && !strings.HasPrefix(entry.Entry.Name, ".") {- hasChildren = true- break+ // Only consider it a child if it's a table (has metadata) or a file.+ // Empty directories left by dropped tables or S3 clients should not+ // prevent the namespace from being deleted.+ _, hasMetadata := entry.Entry.Extended[ExtendedKeyMetadata]+ if hasMetadata || !entry.Entry.IsDirectory {+ hasChildren = true+ break+ }}}