- b2evolution CMS User Manual
- Advanced Topics
- Using the APIs
- REST API or RESTful API
- Delete a User (REST)
Delete a User (REST)
DELETE <baseurl>/api/v1/users/<id>
This API end-point allows to delete a User account. It is the equivalent of deleting a user through the back-office (See: User List).
Messages / Errors
|
Error code |
HTTP response |
Message |
|---|---|---|
|
no_access |
403 |
You have no permission to edit other users! |
|
user_invalid_id |
404 |
Invalid user ID |
|
no_access |
403 |
You can’t delete yourself! |
|
no_access |
403 |
You can’t delete User #1! |
|
delete_restriction |
403 |
Cannot delete User "
Please delete related objects before you proceed. |
|
delete_failed |
403 |
Cannot delete User " |
|
delete_success |
200 |
User " |