Skip to main content
DELETE
/
context
/
world
/
{game_id}
/
{world_id}
Delete a world
curl --request DELETE \
  --url https://app.npcbuilder.com/api/context/world/{game_id}/{world_id} \
  --header 'Authorization: Bearer <token>'
{
  "message": "World: world456 has been deleted.",
  "world_id": "world456"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

game_id
string
required

The unique identifier for the game.

Example:

"game123"

world_id
string
required

The unique identifier for the world to be deleted.

Example:

"world456"

Query Parameters

session_id
string

(Optional) The player's session ID.

Example:

"60Z5aZjIuFlyYbjbZZKe"

Response

World deleted successfully.

message
string

Confirmation message after deletion.

Example:

"World: world456 has been deleted."

world_id
string

UID of the world.

Example:

"world456"

I