Delete SSL vhost

This function deletes the SSL virtual host.

Authorizations:
query Parameters
host
required
string

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

Example: host=example.com

Responses

Response Schema: application/json
object
object

Request samples

whmapi1 --output=jsonpretty \
  delete_ssl_vhost \
  host='example.com'

Response samples

Content type
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
    }
}