Delete Node with Application API

Delete the given node.

Usage

<?php
    $pterodactyl->deleteNode($nodeId);

    //For a node instance
    $node->delete();
?>

Parameters

Parameter Description Rules
nodeId The id of the node

Returns

None

Throwing exception if failed.

Example

<?php
    try {
        $pterodactyl->deleteNode(3);
    } catch(\Exception $e){
        print_r($e->getMessage());
    }
?>
<?php
    try {
        $node = $pterodactyl->node(3);
        $node->delete();
    } catch(\Exception $e){
        print_r($e->getMessage());
    }
?>