Delete user
DELETE /api/users/:id
Delete a user account. This endpoint requires the admin role.
Authentication required: Yes (JWT Bearer token)Required role: admin
Path parameters
The unique identifier (UUID) of the user to delete
Response
Returns204 No Content on successful deletion.
Example request
Error responses
401 Unauthorized - Missing or invalid tokenUser object structure
When users are returned in responses (from auth endpoints), they follow this structure:Unique user identifier (UUID)
User’s email address (unique)
User’s full name
User’s phone number (optional, unique)
User account status:
active or inactiveTimestamp when the user was created (ISO 8601)
Timestamp when the user was last updated (ISO 8601)
Notes
- User deletion is permanent and cannot be undone
- Deleting a user cascades to their associated resources (artists, labels, releases)
- Only users with the
adminrole can delete users - You cannot delete your own user account through this endpoint