Deleting a bucket

Can I delete a bucket from my account to reclaim the space if I have lost the encryption key? Wasn’t easily able to find the answer in the docs. Thanks!

Here you go

https://docs.storj.io/dcs/how-tos/sync-files-with-rclone/rclone-with-native-integration#delete-a-bucket

Hello @TtheBC01 ,
Welcome to the forum!

@nerdatwork the rclone will not allow you to delete non-empty buckets too, and since the encryption key is lost, this bucket will looks like empty, but it’s not true - the current encryption key just unable to decrypt a content.

The working solution would be only to use uplink CLI.

  1. Create an access grant
  2. Setup uplink with this access grant

To list buckets:

uplink ls

To remove a bucket even if you lost an encryption key:

uplink rb --force sj://bucket-to-remove
3 Likes

Thank you @Alexey, I will try this and mark as solution if I’m successful.

1 Like

Finally got a chance to try this. Creating a temporary access grant with delete permissions and importing into uplink CLI worked great. Thanks @Alexey!

2 Likes