SuperDocs Demo

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

Path Parameters

Path Parameters

id required
integer

The unique identifier of the user to delete

Response

Returns an empty object on successful deletion.

{}

Error Responses

StatusDescription
401Unauthorized - missing or invalid authentication
404User 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