UAPI accesses the cPanel interface's features. Use this API to access and modify cPanel account data and settings.
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/
https://{host}:{port}/execute/
Request
This function deletes an SSL certificate.
Note:
- When you call this function, you must include the
idor thefriendly_nameparameter. - This function only deletes certificates from SSL storage. To end SSL coverage for a domain, use the UAPI
SSL::delete_sslfunction instead.
Important:
When you disable the Calendars and Contacts, Receive Mail, Web Disk, Webmail, and Web Server roles, the system disables this function.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/SSL/delete_cert
- A server running cPanel.
https://cpanel-server.tld:2083/execute/SSL/delete_cert
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
uapi --output=jsonpretty \
--user=username \
SSL \
delete_cert{ "apiversion": 3, "func": "delete_cert", "module": "SSL", "result": { "data": [ … ], "errors": null, "messages": null, "metadata": { … }, "status": 1, "warnings": null } }
Request
This function deletes a certificate signing request (CSR).
Note:
- When you call this function, you must include the
idor thefriendly_nameparameter. - To delete a private key, use the UAPI
SSL::delete_keyfunction instead.
Important:
When you disable the Calendars and Contacts, Receive Mail, Web Disk, Webmail, and Web Server roles, the system disables this function.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/SSL/delete_csr
- A server running cPanel.
https://cpanel-server.tld:2083/execute/SSL/delete_csr
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
uapi --output=jsonpretty \
--user=username \
SSL \
delete_csr{ "apiversion": 3, "func": "delete_csr", "module": "SSL", "result": { "data": [ … ], "errors": null, "messages": null, "metadata": { … }, "status": 1, "warnings": null } }
Request
This function deletes a private key.
Note:
- When you call this function, you must include the
idor thefriendly_nameparameter. - To delete a certificate signing request (CSR), use the UAPI
SSL::delete_csrfunction instead.
Important:
When you disable the Calendars and Contacts, Receive Mail, Web Disk, Webmail, and Web Server roles, the system disables this function.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/SSL/delete_key
- A server running cPanel.
https://cpanel-server.tld:2083/execute/SSL/delete_key
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
uapi --output=jsonpretty \
--user=username \
SSL \
delete_key{ "apiversion": 3, "func": "delete_key", "module": "SSL", "result": { "data": [ … ], "errors": null, "messages": null, "metadata": { … }, "status": 1, "warnings": null } }