Delete User
Permanently deletes a user from the system.
Request
| Property | Value |
|---|---|
| Method | DELETE |
| URL | /api/users/{userId} |
| Content-Type | application/json |
| Authentication | Bearer Token |
Request
curl -X DELETE "{BASE_URL}/api/users/{userId}" \
-H "Authorization: Bearer YOUR_TOKEN"
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
userId | integer | Yes | Unique identifier of the user |
Request
curl -X DELETE "{BASE_URL}/api/users/{userId}" \
-H "Authorization: Bearer YOUR_TOKEN"
Response Body
| Parameter | Type | Description |
|---|---|---|
meta.executionTime | integer | Request processing time in milliseconds |
meta.generatedAt | integer | Response generation timestamp (Unix timestamp in ms) |
message | string | Main response status message |
Successful Response (200)
{
"meta": {
"executionTime": 0,
"generatedAt": 1764238672624
},
"message": "User has been removed"
}
Error Responses
| Parameter | Type | Description |
|---|---|---|
message | string | Human-readable error message |
User Not Found (404)
{
"message": "User not found"
}
Support Needed?
Create a free ticket and our support team will provide you necessary assistance.