Skip to main content

Delete Template Asset

DELETE 

/api/pdf-template-assets/:id

Deletes an uploaded image asset and its file.

Required scope: settings:write

Grant 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): 1 deletes an asset that templates still reference.

Request

Responses

OK

Response Headers
    Content-Type