cURL
curl --request DELETE \ --url https://api.thehaystack.ai/v2/haystack/items/{itemId}/resources/{resourceId} \ --header 'Authorization: Bearer <token>'
{ "result": "success" }
Delete a resource. For file resources, the underlying file is also removed from storage.
file
Enter your API token from the Haystack dashboard
Resource deleted
"success"