For the complete documentation index, see llms.txt. This page is also available as Markdown.

delete

Delete a single object, or empty a whole bucket

Usage

ionosctl object-storage object delete [flags]

Aliases

For object-storage command:

[os]

For object command:

[obj]

For delete command:

[d]

Description

Delete one object by key, or empty the entire bucket with --all.

Versioning changes what "delete" means:

  • On a versioning-enabled bucket, deleting a key WITHOUT --version-id does not remove data: it inserts a "delete marker" that hides the key, while all prior versions remain recoverable.

  • Passing --version-id permanently removes that one specific version (this cannot be undone). Deleting a delete-marker version un-hides the key.

  • On a bucket without versioning, the object is simply removed.

--all empties the bucket: it deletes every current object AND every historical version AND every delete marker, so the bucket ends up truly empty. This is destructive and irreversible - it is guarded by a confirmation prompt (use -f/--force to skip it in scripts).

Object Lock: objects protected by a retention or legal hold cannot be deleted. GOVERNANCE-mode retention can be overridden with --bypass-governance-retention (requires the appropriate permission); COMPLIANCE-mode retention and active legal holds can never be bypassed.

Options

Examples

Last updated