Generate experiences with Puck AI
Read docs
CloudAPI referencecloud-clientServer APIsassets.delete

assets.delete

Puck Assets is in early access. Request access.

Delete an asset by id.

await puck.assets.delete("asset_123");

Returns an object.

Args

ParamExampleTypeStatus
id"asset_123"StringRequired
options{ auth: {} }Object-

id

The asset’s id.

options

Set the request options for this call.

Returns

ParamExampleType
idid: "asset_123"String
deleteddeleted: truetrue

id

The deleted asset’s id.

deleted

Always true.