v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
KnownHosts
Known SSH Hosts Management

Delete host

This function removes a host from the cPanel account's /home/user/.ssh/known_hosts file.

get/KnownHosts/delete

Query parameters

string hostname required
OR
string ipv4 required

The hostname or IP address of the host to delete.

portinteger
Example:1234

The SSH port to use.

Response

HTTP Request was successful.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

Example response

{
  "apiversion": 3,
  "func": "delete",
  "module": "KnownHosts",
  "result": {
    "status": 1
  }
}