Skip to main content
DELETE
/
api
/
posts
Delete All Posts
curl --request DELETE \
  --url https://api.example.com/api/posts
{
  "401": {},
  "500": {},
  "success": true
}

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/subratomandal/dyeink/llms.txt

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

Authentication

Requires authentication with a valid Auth0 JWT token.

Response

success
boolean
Indicates whether the operation was successful

Example

cURL
curl -X DELETE https://api.dyeink.com/api/posts \
  -H "Authorization: Bearer YOUR_AUTH_TOKEN"
JavaScript
const response = await fetch('https://api.dyeink.com/api/posts', {
  method: 'DELETE',
  headers: {
    'Authorization': `Bearer ${authToken}`
  }
});
const result = await response.json();

Response Example

{
  "success": true
}

Error Responses

401
object
Not authenticated
{
  "error": "Not authenticated"
}
500
object
Server error
{
  "error": "Failed to delete posts"
}
This action is irreversible. All posts belonging to the authenticated user will be permanently deleted. Use with caution.
This is a bulk delete operation. If you need to delete a single post, use the Delete Post endpoint instead.