/** * Destroy a droplet. * * @param Host $host * * @return bool * @throws Exception */ public function destroy(Host $host) { if (!$host instanceof Droplet) { throw new Exception(self::class . " can only destroy DigitalOcean droplets"); } $this->api->droplet()->delete($host->getDroplet()->id); return true; }