Skip to main content

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​

ParameterRequiredDescriptionDefault
<keys...>Yes1 to 20 object names; more than 20 fails with INVALID_PARAM (exit 3)—
-b, --bucket <bucketId>YesBucket ID—
-y, --yesNoSkip the delete confirmationfalse
--jsonNo{ 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