Delete buckets

You can delete a bucket from various command-line tools or the Storj Console.

To remove an empty bucket:

$
rclone rmdir storj:my-bucket
$
rclone rmdir storj:my-bucket

To remove all objects from the bucket if the encryption phrase is not lost:

$
rclone delete --rmdirs storj:my-bucket
$
rclone delete --rmdirs storj:my-bucket

To remove the not empty bucket even if the encryption phrase is lost:

$
rclone purge storj:my-bucket
$
rclone purge storj:my-bucket

To remove the bucket with Object Lock enabled in a Governance mode and if you know the encryption phrase: You need to use rclone configured with Storj S3 credentials with List, Upload, Download, Delete and BypassGovernanceRetention permissions in an Advance mode:

$
rclone purge us1-gw-mt:my-locked-bucket --header "x-amz-bypass-governance-retention:true"
$
rclone purge us1-gw-mt:my-locked-bucket --header "x-amz-bypass-governance-retention:true"

Please note, this command do not honor any include/exclude filters or prefixes (subfolders), it will always purge the entire bucket, including bucket itself.

Previous
Create buckets