Request
Deletes an existing Blackjack game by its unique identifier. This operation is irreversible.
Path Parameters
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
Game successfully deleted
Game with the specified ID does not exist
Example Scenarios
Success
Request:
DELETE /game/a1b2c3d4-e5f6-7890-abcd-ef1234567890/delete
Response (204):
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