Skip to content

state.delete

Operation: state.delete
Category: state
Tags: state, storage, persistence

Delete a value from persistent workspace state

Type: Native (built-in)
Timeout: 300s
Retries: 3 (ExponentialWithJitter)

NameTypeRequiredDefaultDescription
namespaceStringYesState namespace
keyStringYesKey to delete
NameTypeDescription
successBooleanWhether 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();
{
"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" }]
}