Delete image

DELETE/v1/images/{image_id}

Delete an image record and its stored content when Token360 storage is available.

Use GET /v1/images to find the image_id. Deleting an image only affects image records owned by the current API key.

Authentication

Authorization Bearer

API key as bearer token in Authorization header.

Path Parameters

image_idstringrequired

The image record ID.

Response

idstring

Image record ID.

objectstring

Always image.

deletedboolean

Always true.

Request

Shell
1curl -X DELETE https://api.token360.ai/v1/images/your-image-id \
2  -H "Authorization: Bearer sk-your-api-key"

Response

JSON
1{
2  "id": "your-image-id",
3  "object": "image",
4  "deleted": true
5}
Was this page helpful?