Delete a preview

API reference

Delete a preview

Remove a preview and its images from our storage.

DELETE/v1/previews/:id

Request

Deleting removes the uploaded photo, the preview image, and the 4K version. The credits the preview used are not returned. A preview that is still in progress cannot be deleted yet.

Request
curl -X DELETE https://api.paintvisualizer.ai/v1/previews/PREVIEW_ID \
  -H "Authorization: Bearer pv_your_key"

Response

Response
{
  "id": "jd7e8r1qxqnm3gz7e3awx1ypn18fv15j",
  "object": "preview",
  "deleted": true
}