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.
1 parent 04d67ea commit ef5d0fbCopy full SHA for ef5d0fb
app/Repositories/Wings/DaemonServerRepository.php
@@ -72,11 +72,19 @@ public function update(array $data): void
72
}
73
74
/**
75
- * Delete a server from the daemon.
+ * Delete a server from the daemon, forcibly if passed.
76
+ *
77
+ * @throws \Pterodactyl\Exceptions\Http\Connection\DaemonConnectionException
78
*/
79
public function delete(): void
80
{
- throw new BadMethodCallException('Method is not implemented.');
81
+ Assert::isInstanceOf($this->server, Server::class);
82
+
83
+ try {
84
+ $this->getHttpClient()->delete('/api/servers/' . $this->server->uuid);
85
+ } catch (TransferException $exception) {
86
+ throw new DaemonConnectionException($exception);
87
+ }
88
89
90
0 commit comments