Skip to main content

Assets - Delete asset

Route URL

GET https://playcanvas.com/api/assets/:assetId?branchId=:branchId

Description

Permanently delete an asset from a branch of your project.

warning

Deleting an asset is permanent and unrecoverable unless you have taken a checkpoint of it.

Example

curl -H "Authorization: Bearer {accessToken}" -X DELETE "https://playcanvas.com/api/assets/{assetId}?branchId={branchId}"

HTTP Request

DELETE https://playcanvas.com/api/assets/{assetId}?branchId={branchId}
Authorization: Bearer {accessToken}

Parameters

NameTypeRequiredDescription
assetIdnumber✔️The id of the asset to delete.
branchIdstring✔️The id of the branch to delete the asset from.

Response Schema

Status: 200

Errors

CodeDescription
401Unauthorized
403Forbidden
404Project or Asset not found
429Too many requests

Rate Limiting

This route uses a normal rate limit.