# Destroy

Delete the specific application user of the appliation.

# HTTP Request:

POST https://api.serveravatar.com/organizations/{organization}/servers/{server}/system-users/delete

# Parameter:

Parameters Required Type Description
ids Yes Array Application user ids.

# Curl Request example:

curl --request POST \
  --url "https://api.serveravatar.com/organizations/{organization}/servers/{server}/system-users/delete" \
  --header 'content-type: application/json' \
  --header 'accept: application/json' \
  --header 'Authorization: <YOUR API TOKEN>' \
  --data '{
        "ids": [53]
    }'

# Response:

# Application User Delete

  • 200 (Ok)
{
    "message": "Application user has been deleted successfully!"
}

# Application Exists

  • 500 (Internal Server Error)
{
    "message": "Application user has one or more than one application. It cannot be deleted!"
}

# Application User Not Found

  • 404 (Not Found)
{
    "message":"Application user not found!"
}

# Organization Not Found

  • 404 (Not Found)
{
    "message": "Organization not found!"
}

# Server Not Found

  • 404 (Not Found)
{
    "message":"Server not found!"
}

# Server Error

  • 500 (Internal Server Error)
{
    "message":"Something went wrong while deleting application user account!"
}
Last Updated: 3/18/2023, 8:31:23 AM