state.delete
Operation: state.delete
Category: state
Tags: state, storage, persistence
Delete a value from persistent workspace state
Runtime
Section titled “Runtime”Type: Native (built-in)
Timeout: 300s
Retries: 3 (ExponentialWithJitter)
Inputs
Section titled “Inputs”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
namespace | String | Yes | — | State namespace |
key | String | Yes | — | Key to delete |
Outputs
Section titled “Outputs”| Name | Type | Description |
|---|---|---|
success | Boolean | Whether the delete succeeded |
import { WorkflowBuilder } from "@fabric-platform/sdk";
const workflow = new WorkflowBuilder("my-workflow") .node("state-delete", "tool", (n) => n.config({ operation: "state.delete", // ... node-specific config }) ) .build();from fabric_platform import FabricClient
fabric = FabricClient(api_key="fab_xxx")
wf_id = fabric.upsert_workflow("my-workflow", nodes=[ { "key": "state-delete", "kind": "tool", },])use fabric_sdk::FabricClient;
let client = FabricClient::new("http://localhost:3001", api_key)?;
let wf_id = client.upsert_workflow("my-workflow", serde_json::json!({ "nodes": [{ "key": "state-delete", "kind": "tool" }]})).await?;curl -X POST http://localhost:3001/v1/workflow-definitions \ -H "Authorization: Bearer $FABRIC_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "my-workflow", "nodes": [{ "key": "state-delete", "kind": "tool" }] }'Example
Section titled “Example”{ "key": "clear-cache", "operation": "state.delete", "inputs": [ { "name": "namespace", "path": "$context.state_ns" }, { "name": "key", "path": "$context.cache_key" } ], "outputs": [{ "name": "success", "path": "$context.deleted" }]}