tcb storage objects rm
Delete one or more objects, up to 20 per call.
v3.4.0+
PG mode storage commands have been available since @cloudbase/cli@3.4.0.
Usage
tcb storage objects rm <keys...> -b <bucketId> [-y] [--json]
Parameters
| Parameter | Required | Description | Default |
|---|---|---|---|
<keys...> | Yes | 1 to 20 object names; more than 20 fails with INVALID_PARAM (exit 3) | — |
-b, --bucket <bucketId> | Yes | Bucket ID | — |
-y, --yes | No | Skip the delete confirmation | false |
--json | No | { message } for a single key, IDeletedObjectInfo[] for several | — |
The table output has the columns Key / Status. Status is DELETED or NOT_FOUND; objects that do not exist are skipped silently by the server in a batch delete.
Examples
tcb storage objects rm test/hello.txt -b my-bucket
tcb storage objects rm a.txt b.txt -b my-bucket --yes