Skip to main content
DELETE
/
media
/
{mediaAssetId}
Delete media asset
curl --request DELETE \
  --url https://api.thehaystack.ai/v2/haystack/media/{mediaAssetId} \
  --header 'Authorization: Bearer <token>'
{
  "result": "success"
}

Documentation Index

Fetch the complete documentation index at: https://developer.thehaystack.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Enter your API token from the Haystack dashboard

Path Parameters

mediaAssetId
integer
required

Response

200 - application/json

Media asset deleted

result
string
Example:

"success"