stackit-cli icon indicating copy to clipboard operation
stackit-cli copied to clipboard

Feature Request: Objects in the bucket

Open rochlitzerv opened this issue 10 months ago • 2 comments

With the stackit object-storage bucket delete 'bucket_name' -p command you can delete your bucket but only when its empty. So i need a command like:

  • stackit object-storage bucket 'bucket_name' objects list -p
  • stackit object-storage bucket 'bucket_name' objects delete 'object_name' -p
  • stackit object-storage bucket 'bucket_name' objects delete -all -p

Best regards, Vincent Rochlitzer

rochlitzerv avatar Mar 06 '25 14:03 rochlitzerv

Hi @rochlitzerv,

thank you for submitting this issue. We have already created a bug on our side and will keep you up to date.

Fyusel avatar Mar 07 '25 06:03 Fyusel

Hello @rochlitzerv , after further discussion we've decided to not support this for now. However, we will keep this issue in our backlog for later re-evaluation. As the underlying API currently does not provide a "force-delete" feature, a suitable workaround would be to manually remove all entries in a bucket to delete it afterwards. One example for such tooling would be s3cmd that allows deleting all contents of a bucket recursively. Afterwards the bucket may be removed via terraform

bahkauv70 avatar Apr 09 '25 11:04 bahkauv70