Skip to content

Delete an object

DELETE/v1/asset-objects/{uid}

Deletes the object from storage and removes it from the bucket's object list. This happens immediately (it is not an operation) and cannot be undone. Objects still in pending_upload can be deleted too, which cancels the upload.

Requires the resource write permission (owner, admin or developer role).

Authentication

Send your API key as Authorization: Bearer <token>. The request is scoped to the workspace in X-Workspace-Slug.

Path parameters

uidstringRequired

The object's uid (the object_id returned by Create an upload).

Headers

X-Workspace-SlugstringRequired

Slug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.

Response

200

The object was deleted.

successbooleanRequired

true when the request succeeded.

messagestringRequired

Human-readable status message.

Errors

StatusMeaning
401The API key is missing, invalid, expired or revoked.
403You cannot access the workspace, your role does not allow this action, or the account is suspended.
404The object (or its bucket) does not exist in this workspace, or was already deleted.
409The object's bucket is being deleted.

Errors use the standard error format.