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
| Param | Example | Type | Status |
|---|---|---|---|
id | "asset_123" | String | Required |
options | { auth: {} } | Object | - |
id
The asset’s id.
options
Set the request options for this call.
Returns
| Param | Example | Type |
|---|---|---|
id | id: "asset_123" | String |
deleted | deleted: true | true |
id
The deleted asset’s id.
deleted
Always true.