Delete world
const url = 'http://localhost:11044/api/v1/worlds/example';const options = {method: 'DELETE', headers: {'X-Embabel-Api-Key': '<X-Embabel-Api-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url http://localhost:11044/api/v1/worlds/example \ --header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>'Deletes a world. Cannot delete the currently active world.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Name of one of the current user’s worlds, as listed by GET /worlds; its whole directory, data/ included, is deleted. The active world answers 400 (switch first), a name with no directory 404
Responses
Section titled “Responses”World deleted
A world was deleted, with everything in it. Carries no path, because there is no longer one
object
The world that was deleted
Always deleted
Example
deletedCannot delete active world
A refusal from the world management surface. Carries only the reason, with no status word — the status code is the only other fact and the body does not repeat it
object
Why the operation was refused, written to be shown. Names the world where the refusal is about a particular one
World not found
A refusal from the world management surface. Carries only the reason, with no status word — the status code is the only other fact and the body does not repeat it
object
Why the operation was refused, written to be shown. Names the world where the refusal is about a particular one

