Skip to content

Deleting websites

Method delete.sites
Description Deleting websites
Who has access Agent, Customer

Parametres of the request

Title Type Required Description
access_token string yes Authentication session key
id number yes Website unique ID
user_id number no Unique ID of an agent's customer user who makes request
Is required for agent
To access a list of customer users use the method "get.customer_users"

JSON request structure

{
  "jsonrpc": "2.0",
  "id": "number",
  "method": "delete.sites",
  "params": {
    "access_token": "string",
    "user_id": "number",
    "id": "number"
  }
}

JSON reply structure

{
  "jsonrpc": "2.0",
  "id": "number",
  "result": {
    "success": "true"
  }
}

List of returning errors

Refer to the section "List of errors for the methods with the verb delete"