zeroclaw-labs/zeroclaw · error

purge_namespace not supported by this memory backend

Error message

purge_namespace not supported by this memory backend

What it means

Error "purge_namespace not supported by this memory backend" thrown in zeroclaw-labs/zeroclaw.

Source

Thrown at crates/zeroclaw-plugins/src/wasm_memory.rs:345

            async move |store: &mut Store<PluginState>, bindings: &mut MemoryPlugin| {
                wt(
                    bindings
                        .zeroclaw_plugin_memory()
                        .call_forget_for_agent(store, &key, &agent_id)
                        .await,
                    "memory.forget-for-agent trapped",
                )?
                .map_err(anyhow::Error::msg)
            }
        )
    }

    async fn purge_namespace(&self, namespace: &str) -> Result<usize> {
        if !self
            .capabilities
            .contains(MemoryCapabilities::PURGE_NAMESPACE)
        {
            anyhow::bail!("purge_namespace not supported by this memory backend");
        }
        let namespace = namespace.to_string();
        call_plugin!(
            self,
            async move |store: &mut Store<PluginState>, bindings: &mut MemoryPlugin| {
                let out = wt(
                    bindings
                        .zeroclaw_plugin_memory()
                        .call_purge_namespace(store, &namespace)
                        .await,
                    "memory.purge-namespace trapped",
                )?
                .map_err(anyhow::Error::msg)?;
                Ok(out as usize)
            }
        )
    }

View on GitHub (pinned to 88bb9c8533)

Solutions

  1. Use a memory backend that implements purge_namespace, or delete the keys individually.

When it happens

Trigger: Thrown at crates/zeroclaw-plugins/src/wasm_memory.rs:345 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of zeroclaw-labs/zeroclaw@88bb9c8533 (2026-08-23). Data as JSON: /api/errors/37a765b057530e11. Report an issue: GitHub.