DirectAdmin\LetsEncrypt\Lib\Domain::removeCertificates PHP Method

removeCertificates() public method

Disable certificates in DirectAdmin
public removeCertificates ( )
    public function removeCertificates()
    {
        $sock = $this->getSocket();
        $sock->set_method('POST');
        $sock->query('/CMD_API_SSL', ['domain' => $this->getDomain(), 'action' => 'save', 'type' => 'server', 'submit' => 'Save']);
        $result = $sock->fetch_parsed_body();
        if ($result['error'] != 0) {
            throw new \Exception('Error while executing first API request: ' . $result['details']);
        }
    }