cURL
curl --request DELETE \ --url https://api.thehaystack.ai/v2/haystack/media/{mediaAssetId} \ --header 'Authorization: Bearer <token>'
{ "result": "success" }
Delete a media asset and its underlying file. If it was the indexed asset and the item was published, the item is unpublished.
Enter your API token from the Haystack dashboard
Media asset deleted
"success"