Delete Server
Servers
Delete Server
DELETE
Delete Server
Deletes a server from the Wings instance, including its environment, files, and all associated resources.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/pterodactyl/wings/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
Requires the Wings authentication token in theAuthorization header:
Path Parameters
The UUID of the server to delete
Response
Returns204 No Content on successful deletion.
Error Responses
404 Not Found
The requested server does not exist on this Wings instance.
500 Internal Server Error
An error occurred while deleting the server environment.
Behavior
This endpoint:- Immediately suspends the server to prevent start attempts
- Publishes deletion event to all websocket clients
- Cancels all websocket connections
- Cleans up server resources and background tasks
- Cancels any pending remote file downloads
- Destroys the Docker container (forcibly if running)
- Removes server from the manager
- Deletes server files in background (asynchronous)
Notes
- The server is immediately marked as suspended
- All websocket connections are forcibly closed
- If the server is transferring, a
TransferStatusEventis published withcompletedstatus - Docker container destruction is synchronous (blocks the request)
- File deletion happens asynchronously to avoid blocking on large servers
- File deletion errors are logged but don’t fail the request
Example Request
Example Response
Websocket Events
Clients connected via websocket will receive:deletedevent - Notifies clients the server is being deletedtransfer statusevent (if server is transferring) - Indicates transfer completion
Source Reference
Implemented inrouter/router_server.go:192