Skip to main content
DELETE
/
api
/
resources
/
{id}
Delete Resource
curl --request DELETE \
  --url https://api.example.com/api/resources/{id} \
  --header 'Authorization: <authorization>'
{
  "data": {
    "result": {
      "success": true
    }
  }
}
Deletes a resource record and removes the associated file from storage.

Request

Authorization
string
required
Bearer token for authentication. Format: Bearer <your-api-key>
id
number
required
The resource ID to delete.

Response

data.result.success
boolean
Whether the deletion was successful.
{
  "data": {
    "result": {
      "success": true
    }
  }
}

Example

curl -X DELETE \
  https://dash.empirical.run/api/resources/1 \
  -H "Authorization: Bearer $EMPIRICALRUN_KEY"