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

Request

  • Base URL
    https://cpanel-server.tld:2083/execute
  • Auth
    HTTP basic

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
  }
}

Changes

No recorded changes to this operation across all 5 revisions of this API.