pub(super) async fn handle_agent_globalmemory_remove(
__arg0: State<AppState>,
caller: Option<Extension<Caller>>,
__arg2: Json<AgentGlobalMemoryRemoveRequest>,
) -> impl IntoResponseExpand description
POST /api/v1/agent/globalmemory/remove — demote a Global Memory entry
(clears is_global; the bundle row itself survives, same as Memory →
Global’s own “Remove” button), recorded as a remove version under the
agent the request’s token names so the removal can be seen and undone. A
request without that token is refused. Backs the GlobalMemoryRemove MCP
tool.