Delete User
Permanently delete a user from the system
DELETE
/users/{id} Overview
Permanently deletes a user from the system. This action cannot be undone.
Authorization
Note
This is a destructive operation that requires authentication. Use with caution.
Path Parameters
Path Parameters
id
required
The unique identifier of the user to delete
Response
Returns an empty object on successful deletion.
{}Error Responses
| Status | Description |
|---|---|
401 | Unauthorized - missing or invalid authentication |
404 | User not found |
Usage Notes
Verify User Exists
Before deleting, you may want to verify the user exists using the GET endpoint.
Handle Dependencies
Ensure any posts or comments associated with this user are handled appropriately.
Confirm Deletion
This operation is irreversible. Consider implementing a confirmation step in your UI.
Try it out
DELETE
/users/{id} Authorization
Bearer Token