Skip to main content
DELETE
/
game
/
{id}
/
delete
Delete Game
curl --request DELETE \
  --url https://api.example.com/game/{id}/delete
{
  "204": {},
  "404": {}
}

Request

Deletes an existing Blackjack game by its unique identifier. This operation is irreversible.

Path Parameters

id
string
required
The unique identifier of the game to delete

cURL Example

curl -X DELETE http://localhost:8080/game/550e8400-e29b-41d4-a716-446655440000/delete

Response

This endpoint returns no content on successful deletion.

Status Codes

204
No Content
Game successfully deleted
404
Not Found
Game with the specified ID does not exist

Example Scenarios

Success

Request:
DELETE /game/a1b2c3d4-e5f6-7890-abcd-ef1234567890/delete
Response (204):
(No content)

Game Not Found

Request:
DELETE /game/invalid-game-id/delete
Response (404):
{
  "message": "Game not found"
}

Notes

  • Deleting a game removes all associated game data
  • This operation cannot be undone
  • Player ranking statistics are not affected by game deletion
  • It is recommended to delete games only when they are no longer needed or for testing purposes

Build docs developers (and LLMs) love