This function removes a host from the cPanel account's /home/user/.ssh/known_hosts
file.
uapi --output=jsonpretty \ --user=username \ KnownHosts \ delete \ host_name='host.example.com'
{- "apiversion": 3,
- "func": "delete",
- "module": "KnownHosts",
- "result": {
- "data": null,
- "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}