aboutsummaryrefslogtreecommitdiff
path: root/bulk.go
diff options
context:
space:
mode:
Diffstat (limited to 'bulk.go')
-rw-r--r--bulk.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/bulk.go b/bulk.go
index a0f458e..2d61437 100644
--- a/bulk.go
+++ b/bulk.go
@@ -26,6 +26,8 @@ import (
"net/url"
"strconv"
"strings"
+
+ "github.com/majewsky/schwift/capabilities"
)
//BulkUploadFormat enumerates possible archive formats for Container.BulkUpload().
@@ -160,7 +162,7 @@ func (a *Account) BulkDelete(objects []*Object, containers []*Container, opts *R
if err != nil {
return 0, 0, err
}
- if caps.BulkDelete == nil {
+ if caps.BulkDelete == nil || !capabilities.AllowBulkDelete {
return a.bulkDeleteSingle(objects, containers, opts)
}
chunkSize := int(caps.BulkDelete.MaximumDeletesPerRequest)