Delete SSL vhost

This function deletes the SSL virtual host.

SecurityBasicAuth
Request
query Parameters
host
required
string

The hostname whose SSL virtual host you'd like to delete.

Example: host=example.com
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/delete_ssl_vhost
Request samples
whmapi1 --output=jsonpretty \
  delete_ssl_vhost \
  host='example.com'
Response samples
application/json
{
  • "data": {
    • "output": [
      • "Deleting the SSL host for example.com",
      • "Done."
      ],
    • "removed_vhost_data": [
      • {
        • "ip_port": [
          • "192.0.2.0",
          • "443"
          ],
        • "is_ssl": 1,
        • "primary_on_ip_port": "example.net",
        • "servername": "example.com",
        • "vhost_entry": "<VirtualHost 192.0.2.0 :443>\nServerName example.com\nServerAlias [...]\n"
        }
      ]
    },
  • "metadata": {
    • "command": "delete_ssl_vhost",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}