dcloud s3 bucket-objects delete-versions

Delete up to 1000 versions for good; deleting a delete marker undeletes

IAM s3:DeleteObjectVersionChanges stateAsks before it deletes (-y skips)

Answers { deleted, errors }, each with key and versionId.

Synopsis

dcloud s3 bucket-objects delete-versions name --versions versions

Arguments

  • <name>Required

    string

    Also accepted as --name. Constraints: 3-63 chars, /^[a-z0-9][a-z0-9-]*[a-z0-9]$/

Flags

  • --versionsRequired

    array of json

    The versions to delete for good, as { key, versionId }; the versionId of a delete marker undeletes the key

Example

dcloud s3 bucket-objects delete-versions name --versions '["example"]'

Generated from the API description, the same one the API checks requests against and the CLI is built from.