Skip to main content
DELETE
/
assets
/
{id}
Delete Asset
curl --request DELETE \
  --url https://api.supapo.st/assets/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>"
}
'
Permanently deletes an asset from both R2 storage and the database. This action cannot be undone.

Path Parameters

id
string
required
The asset ID (UUID).

Response

200
{
  "success": true
}
404
{
  "success": false,
  "message": "Asset not found"
}

Delete Asset by URL

POST /assets/delete
Delete an asset from R2 storage by its public URL. Useful for cleaning up images that aren’t tracked in the assets table (e.g. influencer images, product images).

Body Parameters

url
string
required
The public R2 URL of the file to delete.

Response

200
{
  "success": true
}