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.
DELETE /api/auth/delete
Permanently deletes the authenticated user’s account, including their Auth0 profile and all associated data from the database.Authentication
Requires Auth0 JWT token in the Authorization header.Response
Indicates whether the deletion was successful
Example Request
cURL
Example Response
Error Responses
Authentication token is missing or invalid
Request method is not DELETE or POST
Server encountered an error processing the request
Data Deletion
This endpoint performs the following deletions:- Auth0 Profile: Removes the user from Auth0 (if
AUTH0_MANAGEMENT_API_TOKENis configured) - User Record: Deletes the user document from the database
- Site Settings: Removes the user’s site configuration
- Posts: Deletes all posts created by the user
Important Notes
- The operation attempts to delete the Auth0 user profile, but continues even if this fails
- All database records associated with the user are deleted in parallel
- The user’s JWT token will be invalidated after deletion
- This endpoint accepts both DELETE and POST methods for compatibility
Environment Requirements
For complete account deletion including Auth0:AUTH0_DOMAIN: Your Auth0 domainAUTH0_MANAGEMENT_API_TOKEN: Auth0 Management API token withdelete:usersscope

