DELETE
/v1/users/:userId
Copy to clipboard
Delete user account permanently
Permanently deletes a user account and removes their access to the platform, this operation cannot be undone and should be used carefully as it affects user authentication and organizational membership.
Request
Add parameter in header
authorization
Example:
Authorization: Bearer <token>
userId
string
required
Responses
200 Response
application/json
status
boolean
optional
data
object
optional
delete
string
optional
{
"status": true,
"data": {
"delete": "OK"
}
}
401 Response
application/json
status
boolean
optional
error
object
optional
code
number
optional
message
string
optional
{
"status": false,
"error": {
"code": 4002,
"message": "No auth token"
}
}
404 Response
application/json
status
boolean
optional
error
object
optional
code
number
optional
message
string
optional
{
"status": false,
"error": {
"code": 3001,
"message": "Entity not found"
}
}