Removes the user you identify in the id
parameter from the user resource, if the user exists.
{server_url}/users/{id}
Parameter name | Type | Description |
---|---|---|
id |
number | The record ID of the user to delete |
Content-Type: application/json
DELETE {server_url}/users/{id}
Returns the user you deleted from the user resource
[
{
"name": "Jill Jones",
"email": "j.jones@example.com",
"id": 2
}
]
Status value | Return status | Description |
---|---|---|
200 | Success | Action completed successfully |
202 | Accepted | Action has been queued |
204 | No Content | Action has been performed, but the response does not include an entity |
404 | Error | Specified user record not found |
ECONNREFUSED | N/A | Service is offline. Start the service and try again. |