Add Delete Zone Method
This commit is contained in:
committed by
GitHub
parent
9b9738910d
commit
1e2b630964
@@ -233,4 +233,18 @@ class Zones implements API
|
|||||||
|
|
||||||
return false;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user