Delete resources
Endpoints listed on this page require project tokens with the delete ability. See Authentication for more details.
Delete a resource
DELETE /v2/resources/{blueprint}/{id}Permanently deletes a resource. This action cannot be undone.
Parameters
| Parameter | Location | Description |
|---|---|---|
blueprint | URL | The blueprint slug (e.g. blog-posts) |
id | URL | The resource ID (e.g. gKqv6dx6pBk9) |
Example
bash
curl -X DELETE "https://api.diggama.com/v2/resources/blog-posts/gKqv6dx6pBk9" \
-H "Authorization: Bearer {token}"Response — 204 No Content
Returns an empty response body on success.
Error responses
| Status | Description |
|---|---|
403 Forbidden | Token doesn't have the delete ability on this blueprint |
404 Not Found | Resource does not exist or does not belong to this project |
Deleting multiple resources
To delete several resources at once, use Bulk delete instead.