Skip to content

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.

put in delete folder children query

elee06f23aa67591
diff --git a/weed/filer/arangodb/arangodb_store.go b/weed/filer/arangodb/arangodb_store.go
index c1445f0267..23aefe40f4 100644
--- a/weed/filer/arangodb/arangodb_store.go
+++ b/weed/filer/arangodb/arangodb_store.go
@@ -292,7 +292,10 @@ func (store *ArangodbStore) DeleteEntry(ctx context.Context, fullpath util.FullP
func (store *ArangodbStore) DeleteFolderChildren(ctx context.Context, fullpath util.FullPath) error {
var query string
- query = query + fmt.Sprintf(`filter starts_with(d.directory, "%s") remove d._key in files`,
+ query = query + fmt.Sprintf(`
+ for d in files
+ filter starts_with(d.directory, "%s/") || d.directory == "%s"
+ remove d._key in files`,
strings.Join(strings.Split(string(fullpath), "/"), ","),
string(fullpath),
)