private function doDelete($token) { Assert::string($token, "Token must be a string. Got: %s"); $path = $this->docroot . "/.well-known/acme-challenge/{$token}"; $realpath = realpath($path); if ($realpath) { (yield \Amp\File\unlink($realpath)); } }