This function function deletes an SSH key from the server.
Warning:
Only the root
account can use this function, and it only affects
the root
keys. To perform this function on a cPanel user account, call the
cPanel API 2 SSH::authkey
function through the WHM API.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ deletesshkey \ file='/root/.ssh/test'
{- "data": {
- "file": "/root/.ssh/test"
}, - "metadata": {
- "command": "deletesshkey",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}