Force delete Server with Application API

Force delete the given server.

Usage

<?php
    $pterodactyl->forceDeleteServer($serverId);

    //For a server instance
    $server->forceDelete();
?>

Parameters

Note

The serverId is the id of the server, not identifier, externalId or uuid.

Parameter Description Rules
serverId The id of the server

Returns

None

Throwing exception if failed.

Example

<?php
    try {
        $pterodactyl->forceDeleteServer(14);
    } catch(\Exception $e){
        print_r($e->getMessage());
    }
?>
<?php
    try {
        $server = $pterodactyl->server(14);
        $server->forceDelete();
    } catch(\Exception $e){
        print_r($e->getMessage());
    }
?>