Skip to content
Skip to Content
DevelopersAPI referenceAssets

Delete one of the user's stored files

DELETE
/v1/assets/{assetId}

Deletes the file and frees its storage, whatever item it belongs to. Thumbnails cannot be deleted (422): they are replaced or removed with their item. API keys need write on assets.

Authorization

bearer
headerAuthorizationBearer <token>

A personal API key (ga_…), sent as Authorization: Bearer ga_…. A key gets 403 on a resource it has no access to, and on anything that changes data without write access.

Path Parameters

assetId*string

Response Body

Deleted

Example Request
curl -X DELETE 'https://example.com/v1/assets/string'
Example Response
Empty