Jump to Content
Guides
API Reference
Changelog
API Reference
Moon (Dark Mode)
Sun (Light Mode)
Guides
API Reference
Changelog
Delete a game server
Search
All
Pages
Start typing to search…
JUMP TO
The DatHost api
CS2 Servers REST API
Server Locations Mapping
API
Game Servers > General
List game servers
get
Create a game server
post
Delete a game server
delete
Get a game server
get
Update a game server
put
Get game server metrics
get
Purchase subscription / Cancel subscription / Switch to Pay as you Go
post
Game Servers > Actions
Duplicate a game server
post
Reset a game server
post
Start a game server
post
Stop a game server
post
Sync the files between the API cache and a game server
post
Game Servers > File Management
List files on gameserver
get
Delete a file/directory from a game server
delete
Download a file from a game server
get
Upload a file to a game server
post
Move a file/directory on a game server
put
Regenerate FTP password for a game server
post
Unzip a file on a game server
post
Game Servers > Console
Get the last lines of backlog from a game server console
get
Send a line of text to a game server console
post
CS2 Matches
Start a CS2 match
post
Get a CS2 match
get
Cancel a CS2 match in progress
post
Add a player to a CS2 match
post
Account
Get the current account
get
List all invoices/receipts
get
Get an invoice as HTML
get
System
Get all available custom domains
get
Powered by
Delete a game server
delete
https://dathost.net/api/0.1/game-servers/
{server_id}
Language
Shell
Node
Ruby
PHP
Python
RESPONSE
Click
Try It!
to start a request and see the response here!