Delete a mount
Delete a mount with its files and its change log.
DELETE
/api/v1/mounts/:mountIdconst response = await fetch("https://api.smallworld.sh/api/v1/mounts/0199a1c4-5b6e-7a10-9c2d-3e4f5a6b7c8d", {
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#
mountIdUUIDrequiredThe mount's ID, returned as id when the mount was created.
Responses#
Returns deleted: true after deletion succeeds.
{
"deleted": true
}
More about this endpoint
This is permanent: Smallworld keeps no other copy of a mount's files.
Commands that changed the mount and are still running or waiting for approval lose those changes: a waiting approval is interrupted, and the command's stderr says why.
Tool call hooks scoped to this mount are deleted with it.