TEASEDocs
API ReferenceLandings

Delete an uploaded icon

Delete one of your own uploaded icons. Built-in icons cannot be deleted, and an icon currently used by a button cannot be removed. Requires a write-scoped key.

Authorization

bearerAuth
AuthorizationBearer <token>

Your al_live_<prefix>_<secret> API key. Mint and manage keys in the dashboard.

In: header

Path Parameters

filename*string

The icon filename to delete.

Response Body

application/json

application/json

application/json

application/json

DELETE
/api/admin/icons/{filename}
curl -X DELETE "https://example.com/api/admin/icons/string"
Empty
{  "detail": {    "code": "icon_builtin",    "message": "Встроенная иконка не может быть удалена"  }}
{  "detail": "auth required"}
{  "detail": {    "code": "icon_not_found",    "message": "Иконка не найдена"  }}
{  "detail": {    "code": "icon_in_use",    "message": "Иконка используется в одной из кнопок (draft или published)"  }}