Delete Template Asset
DELETE/api/pdf-template-assets/:id
Deletes an uploaded image asset and its file.
settings:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Authentication: Personal Access Token (sent as a Bearer token) with the settings scope (write access).
The delete is refused with a 409 while any template still holds the asset's {{{asset.<slug>}}} token, and the response names those templates — deleting anyway leaves a blank space in every future print of them, and re-uploading the same file does not undo it because the slug (and therefore the token) changes on collision. Repeat the request with force=1 to delete regardless.
Path params:
- id: the ID of the asset to delete.
Query params:
- force (optional):
1deletes an asset that templates still reference.
Request
Responses
- 200
- 401
- 403
- 404
- 409
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not Found
Response Headers
Conflict
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.