# Delete SSH key This function function deletes an SSH key from the server. Only the account can use this function, and it only affects the keys. To perform this function on a cPanel user account, call the cPanel API 2 function through the WHM API. Endpoint: GET /deletesshkey Version: 11.134.0.5 Security: BasicAuth ## Query parameters: - `file` (string, required) The SSH key file's name. Example: "/root/.ssh/test" - `leave_authorized` (integer) Whether to authorize the SSH key to access the server. * — Leave authorized. * — Do leave authorized. Enum: 0, 1 ## Response 200 fields (application/json): - `data` (object) - `data.file` (string) The SSH key file's name. Example: "/root/.ssh/test" - `metadata` (object) - `metadata.command` (string) The method name called. Example: "deletesshkey" - `metadata.reason` (string) The reason the API function failed when the field is . This field may display a success message when a function succeeds. Example: "OK" - `metadata.result` (integer) * - Success. * - Failed. Check the field for more details. Enum: 0, 1 - `metadata.version` (integer) The version of the API function. Example: 1