Deletes the specified bucket.
bucketName | Bucket name to be deleted |
namespace | Namespace associated. If it is null, then current user's namespace is used. |
emptyBucket | Optional: true | false (default).
If emptyBucket=true the contents of the bucket will be emptied as part of the delete.
The request will return a 202 Accepted if the bucket is not already empty and cleanup was initiated to run in the background.
The bucket will be read only during the operation. If the task successfully removes all related items the buket will be deleted. If the task is unable to remove all items or is aborted the bucket will be put back into a writable state. Progress can be monitored through call to: /object/bucket/{bucketName}/emtpy-bucket-status If emptyBucket=false or not present the delete bucket operation will fail if the bucket is not empty. |
SYSTEM_ADMIN
The following conditions must be met in order to call this operation.
Only authenticated users can delete buckets
Bucket name should not be null or empty
No Request Payload
Response indicating success, failure, or accepted (when emptyBucket == true) of the bucket delete operation.
POST https://192.168.0.0:4443/object/bucket/bucket1/deactivate HTTP/1.1 Content-Type: application/xml X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
HTTP/1.1 200 OK Content-Type: application/xml