# Delete Support SSH key This function removes a cPanel Customer Portal SSH key from the server. This function is available through the command line. You call it as a request body. Endpoint: GET /ticket_revoke Version: 11.134.0.5 Security: BasicAuth ## Query parameters: - `server_num` (integer, required) The server's ID number. Example: 1 - `ssh_username` (string, required) The username for incoming SSH connections before they escalate to the user. Example: "username" - `ticket_id` (integer, required) The support ticket's ID number. Example: 999999999 ## Response 200 fields (application/json): - `data` (object) - `data.chain_status` (string) The status of the [](https://netfilter.org/projects/iptables/index.html) whitelist entries. * — The system added the appropriate whitelist entries or they already existed. * — The whitelist entries were successfully removed or were already deleted. * — The system failed to add the whitelist entries. * — The system failed to remove the whitelist entries. * — An unknown error occurred. Enum: "ACTIVE", "INACTIVE", "ERR_SETUP", "ERR_UNSETUP", "ERR_UNKNOWN" - `data.csf_wl_status` (string) The status of the [ConfigServer Security & Firewall (CSF)](https://www.configserver.com/) whitelist entries. * — The system added the appropriate CSF whitelist entries or they already existed. * — The CSF whitelist entries were successfully removed or they were already deleted. * — The system failed to add the CSF whitelist entries. * — The system failed to remove the CSF whitelist entries. * — An unknown error occurred. If CSF does not exist on the server, the function will display this return. Enum: "ACTIVE", "INACTIVE", "ERR_SETUP", "ERR_UNSETUP", "ERR_UNKNOWN" - `data.host_access_wl_status` (string) The status of the file's whitelist entries. * — The system added the appropriate file whitelist entries or they already existed. * — The file whitelist entries were successfully removed or they were already deleted. * — The system failed to add the file whitelist entries. * — The system failed to remove the file whitelist entries. * — An unknown error occurred. Enum: "ACTIVE", "INACTIVE", "ERR_SETUP", "ERR_UNSETUP", "ERR_UNKNOWN" - `data.hulk_wl_status` (string) The status of the [cPHulk](https://docs.cpanel.net/whm/security-center/cphulk-brute-force-protection/) whitelist entries. * — The system added the appropriate cPHulk whitelist entries or they already existed. * — The cPHulk whitelist entries were successfully removed or they were already deleted. * — The system failed to add the cPHulk whitelist entries. * — The system failed to remove the cPHulk whitelist entries. * — An unknown error occurred. Enum: "ACTIVE", "INACTIVE", "ERR_SETUP", "ERR_UNSETUP", "ERR_UNKNOWN" - `data.non_fatals` (array) Any non-fatal errors. * — The function could not record the grant operation in the ticket. * — The function could not record the grant operation in the local audit log. The system stores the local audit log in the file. Enum: "ticket_system_log_entry", "audit_log" - `data.revoked_keys` (integer) The total number of revoked SSH keys. Example: 1 - `data.server_num` (integer) The server's ID number. Example: 2 - `data.ssh_username` (string) The username for incoming SSH connections before they escalate to the user. Example: "username" - `data.ticket_id` (integer) The revoked support ticket's ID number. Example: 999999999 - `metadata` (object) - `metadata.command` (string) The method name called. Example: "ticket_revoke" - `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