curl -X DELETE \
-H "QB-Token: b284ddf44f5369611fe14e0e588f1cfa855116c8" \
https://api.quickblox.com/users/36.json
Empty body
{
"code": null,
"message": "No data was provided"
}
{
"errors": {
"base": [
"You are not owner of this object"
]
}
}
{
"code": null,
"message": "Couldn't find user"
}
{
"errors": {
"id": [
"should be a positive integer"
]
}
}
Users
Delete User by ID
Delete a user by ID. A user can be deleted only by themselves or an account owner.
DELETE
/
users
/
{user_id}
.json
curl -X DELETE \
-H "QB-Token: b284ddf44f5369611fe14e0e588f1cfa855116c8" \
https://api.quickblox.com/users/36.json
Empty body
{
"code": null,
"message": "No data was provided"
}
{
"errors": {
"base": [
"You are not owner of this object"
]
}
}
{
"code": null,
"message": "Couldn't find user"
}
{
"errors": {
"id": [
"should be a positive integer"
]
}
}
Recipes
Delete user by id with API key
Delete user by id with API key
1
1. Use 'Authorization' header to pass API key
curl -X DELETE \
-H 'Authorization: ApiKey 28irlNAGasWDSupO9Vw0BBMZfuHrAUYKpmroS9yBORI' \
https://api.quickblox.com/users/36.json
2
2. As a result, the API remove a user
curl -X DELETE \
-H 'Authorization: ApiKey 28irlNAGasWDSupO9Vw0BBMZfuHrAUYKpmroS9yBORI' \
https://api.quickblox.com/users/36.json
Path Parameters
integer
required
ID of the user. Generated automatically by the server after user creation.
Headers
string
required
A user session token. See Authentication page to learn more about the session token.
string
default:"ApiKey {your_api_key}"
required
API key from Dashboard. Expected format:
ApiKey {your_api_key}. Must be used either QB-Token or Authorization.Responses
200
200
A successful response
curl -X DELETE \
-H "QB-Token: b284ddf44f5369611fe14e0e588f1cfa855116c8" \
https://api.quickblox.com/users/36.json
Empty body
{
"code": null,
"message": "No data was provided"
}
{
"errors": {
"base": [
"You are not owner of this object"
]
}
}
{
"code": null,
"message": "Couldn't find user"
}
{
"errors": {
"id": [
"should be a positive integer"
]
}
}
Was this page helpful?