We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents df0b923 + 0654887 commit 3e8e75cCopy full SHA for 3e8e75c
src/TrafficManagement/Zone.php
@@ -215,6 +215,28 @@ public function getDefaultTtl($defaultTtl)
215
return $this->defaultTtl;
216
}
217
218
+ /**
219
+ * Delete a node from the zone, including all of its records and any nodes
220
+ * underneath it
221
+ *
222
+ * @param string $fqdn FQDN of the node to delete
223
+ * @return boolean|ApiResponse
224
+ */
225
+ public function deleteNode($fqdn) {
226
+ $path = '/Node/'.$this->getName().'/'.$fqdn.'/';
227
+
228
+ $result = $this->apiClient->delete($path);
229
+ if ($result && $result->isOk()) {
230
+ if ($result->isComplete()) {
231
+ return true;
232
+ } else {
233
+ return $result;
234
+ }
235
236
237
+ return false;
238
239
240
/**
241
* Create the supplied record
242
*
0 commit comments