Skip to documentation
Docs navigation
Docs/removeGraft()
MemoGrafterAgent

removeGraft()

Remove a registered graft node from the current session.

What it does

Remove a registered graft node from the current session.

When to use it

Use to remove a copied graft topic from the current session by target node ID.

Signature

TypeScript
removeGraft(nodeId: string): Promise<void>

Parameters

nodeId (string) — The grafted topic node to remove.

Result

The requested identifier or text value.

Behavior

Deletes the registered target graft and its provenance according to the store's graft-removal workflow. Source-session data is not changed.

Side effects and completion

Destructive for the target session. The promise resolves with no value.

Example

example.ts
await agent.removeGraft(nodeId);