Skip to content
Delete a World

Delete a World

Delete a World owned by your workspace.

DELETE/api/v1/worlds/:id

Request#

TypeScript
const response = await fetch("https://api.smallworld.sh/api/v1/worlds/01995e56-e2d4-7f19-b691-7bf9af6abdc8", {
  method: "DELETE",
  headers: { Authorization: `Bearer ${apiKey}` },
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
const result = await response.json();

Use your server-side apiKey. Replace the example IDs.

Path parameters#

idUUIDrequired

The World ID returned by POST /worlds or GET /worlds.

Responses#

Returns deleted: true after deletion commits.

200 response
{
  "deleted": true
}
More about this endpoint

Deletion is refused while a session in the World is running.