Brain Docs

Reference

Python SDKInstallationHTTP clientWire clientSync vs async
create_spacelist_spacesdelete_spacecreate_sessionlist_sessionsdelete_session
ErrorsRetriesPagination
Brain/Docs
✦ ASKBrain on GitHubDashboard
Python SDKSpaces and sessionsdelete_space

delete_space

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
delete_space() -> SpaceErased
Handshake credentialstable
delete_space(request: SpaceDeleteRequest) -> 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.

memories_forgotten64-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
forgetdelete_session

Was this page helpful?

list_spaces

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

create_session

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

On this page

Returns
Suggest an editOpen in Playground