Add Delete Zone Method

This commit is contained in:
Benedict E. Pranata
2019-07-23 13:34:58 +07:00
committed by GitHub
parent 9b9738910d
commit 1e2b630964

View File

@@ -233,4 +233,18 @@ class Zones implements API
return false;
}
/**
* Delete Zone
*/
public function deleteZone(string $identifier): bool
{
$user = $this->adapter->delete('zones/' . $identifier);
$this->body = json_decode($user->getBody());
if (isset($this->body->result->id)) {
return true;
}
return false;
}
}