---
title: "Remove linked server node"
method: GET
path: "/unlink_server_node"
tags: ["Server Administration", "Server Nodes"]
---

# Remove linked server node

`GET /unlink_server_node`

This function unlinks a remote server node from your server.

**Important:**

  This function does **not** unlink mail servers that are currently in use. 
  You **must** first delete any accounts that use the linked mail server.

## Query parameters

- `alias` string, required
- `handle_api_token` 'leave' | 'expire_24h'

## Response `200`

HTTP Request was successful.

- object
  - `data` object
    - `alias` string — The name of a linked remote server node.
    - `enabled_services` string[] — A list of services enabled on the linked remote server node.
    - `hostname` string, hostname — The remote server node's hostname.
    - `last_check` integer — The last time that the server queried the current status of the remote server.
    - `system_settings` object — A list of the `worker_capabilities` return's system settings.
    - `tls_verified` 0 | 1 — Whether the remote server node has a valid [SSL certificate](https://docs.cpanel.net/knowledge-base/security/guide-to-ssl/). * `1` - The remote server node has a valid SSL certificate. * `0` - The remote server node does not have a valid SSL certificate.
    - `username` string — The username required to make API calls to the linked remote server node.
    - `version` string — The version of cPanel & WHM installed on the remote server node.
    - `worker_capabilities` object — A group of services required for a remote server node to perform a specific task.
  - `metadata` object
    - `command` string — The method name called.
    - `reason` string — The reason the API function failed when the `metadata.result` field is 0. This field may display a success message when a function succeeds.
    - `result` 0 | 1 — * `1` - Success * `0` - Failed: Check the reason field for more details.
    - `version` integer — The version of the API function.

---

[API](https://skmtc.net/cpanel/apis/whm-api.md) · [All operations](https://skmtc.net/cpanel/apis/whm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cpanel/whm-api/revisions/3da41671c02c/schema)
