Images

Deleting images

Permanently remove a generation owned by your API key. The image is deleted from storage and removed from your gallery. Usage history is kept.

Endpoint

DELETE https://qaves.me/api/v1/images/generations

Parameters

idstringrequired
The generation's UUID. Returned in data[].id from the create and list endpoints. Pass it as a query string (?id=<uuid>) or in a JSON body.

Examples

Delete via query string:

curl -X DELETE "https://qaves.me/api/v1/images/generations?id=<uuid>" \
  -H "Authorization: Bearer sk_qu_YOUR_KEY"

Or pass the ID in a JSON body:

curl -X DELETE https://qaves.me/api/v1/images/generations \
  -H "Authorization: Bearer sk_qu_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "id": "<uuid>" }'

Response

{ "deleted": true, "id": "<uuid>" }

Permanent

Deletion cannot be undone. The image bytes are removed from storage immediately and the gallery row is deleted. Only generations owned by the calling API key can be deleted — others return 404.