Brain Docs

Reference

TypeScript SDKInstallationHTTP clientWire client
createSpacelistSpacesdeleteSpacecreateSessionlistSessionsdeleteSession
ErrorsRetriesPagination
Brain/Docs
✦ ASKBrain on GitHubDashboard
TypeScript SDKSpaces and sessionsdeleteSpace

deleteSpace

Erase the caller's space and everything under it — hard, immediate and safe to retry.

PURPOSE

Erases the caller's space and everything under it. Hard and immediate. It takes no id on the HTTP tier, because there is no id to pass — the credential names the space.

DELETE/v1/spacesBearer API keystable
deleteSpace(): Promise<SpaceErased>
Handshake credentialstable
deleteSpace(request: SpaceDeleteRequest): Promise<SpaceDeleteResponse>

Returns

FieldTypePresence
spacestringalways

The space that was erased.

existedbooleanalways

false when there was nothing to erase. A repeat reaches the same end state and answers false, which is what makes the call safe to retry.

memoriesForgotten64-bit integeralways

How many memories went with it.

There is no undo and no grace period

This is not a tombstone. The space and its memories, statements, entities and relations are gone. If you want reversible removal of one memory, use forget in its soft mode instead.

You do not choose your space on the HTTP tier

The space comes from the credential. These verbs act on the caller's space. Addressing another space per request is a wire-tier capability — see act_as. Per-end-user isolation is a storage-key prefix inside one space, not a key per user; see Namespaces.

See also
forgetdeleteSession

Was this page helpful?

listSpaces

The spaces in the caller's namespace — and the cross-shard completeness flag you must check.

createSession

Create a session inside the caller's space, with an id you choose.

On this page

Returns
Suggest an editOpen in Playground