×

Delete user

This API deletes an existing user in the PILOT system by their user ID.

How to get data

Request address

To get the data, use the address:  https://<server_address>/api/api.php?

Request method

DELETE

Request parameters

  • cmd=remove_user — command to delete a user
  • user_id — ID of the user to be removed
  • node — node number where the command should be executed (optional)
 

Example request

https://<server_address>/api/api.php?cmd=remove_user&user_id=48&node=1
Response
{
    "code": 0,
    "msg": "Success remove"
}
In response to the API request, the following is returned:
  • code — result code (0 — successful operation)
  • msg — server message about the result of the action