dcloud s3 bucket-objects emptyEmpty the bucket in the background: every object, version and delete marker, for good
IAM s3:DeleteObjectVersionChanges stateAsks before it deletes (-y skips)
Answers 202 with the job ({ id, status, total, deleted, failed, errors, remaining, perSecond, … }), or 200 with the one already running. total: what the bucket held when it started (counted first); when it finishes, deleted is total less remaining. Each version is still checked against your policies and the bucket policy; what they keep is counted in failed and stays. Follow it with empty-status; the bucket and its settings stay.
Synopsis
dcloud s3 bucket-objects empty nameArguments
<name>Requiredstring
Also accepted as
--name. Constraints: 3-63 chars, /^[a-z0-9][a-z0-9-]*[a-z0-9]$/
Example
dcloud s3 bucket-objects empty nameGenerated from the API description, the same one the API checks requests against and the CLI is built from.