Skip to main content
DELETE
Delete a user by ID

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Path Parameters

userId
string
required

The unique identifier of the user to delete (MongoDB ObjectId)

Pattern: ^[0-9a-fA-F]{24}$

Response

User successfully deleted

success
boolean

Indicates if the operation was successful

Example:

true

message
string

Success message

Example:

"User deleted successfully"