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 URLhttps://cpanel-server.tld:2083/execute
- AuthHTTP basic
Query parameters
The hostname or IP address of the host to delete.
portinteger
Example:1234
The SSH port to use.
Response
HTTP Request was successful.
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.