You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fatalIf(errDummy().Trace(), "`"+targetURL+"` is not empty. Retry this command with ‘--force’ flag if you want to remove `"+targetURL+"` and all its contents")
251
282
}
252
283
253
-
e:=deleteBucket(ctx, targetURL, isForce)
254
-
fatalIf(e.Trace(targetURL), "Failed to remove `"+targetURL+"`.")
284
+
varbucketsURL []string
285
+
ifisS3NamespaceRemoval(ctx, targetURL) {
286
+
bucketsURL, err=listBucketsURLs(ctx, targetURL)
287
+
fatalIf(err.Trace(targetURL), "Failed to remove `"+targetURL+"`.")
288
+
} else {
289
+
bucketsURL= []string{targetURL}
290
+
}
291
+
292
+
for_, bucketURL:=rangebucketsURL {
293
+
e:=deleteBucket(ctx, bucketURL, isForce)
294
+
fatalIf(e.Trace(bucketURL), "Failed to remove `"+bucketURL+"`.")
0 commit comments