AI Agent News/stories/workflow-sdk-can-now-delete-a-finished-run-s-stored-data-on-demand.md

Infrastructure

Workflow SDK can now delete a finished run's stored data on demand

Vercel's Workflow SDK now lets developers delete the stored data of a finished run on demand, which can help meet compliance and security requirements. Run metadata stays visible in observability after deletion.

Source: vercel.com/changelog/delete-run-data-workflow-sdk

Deleting a run's data removes its inputs, outputs, hook payloads, and error traces, along with those of its related entities. The run's metadata is kept, so it still appears in observability, and attributes, hook tokens, and step and event timings can still be inspected.

Deletion can be triggered from the Vercel Dashboard or from the command line with pnpx workflow delete runId, with a --backend vercel flag for runs hosted on Vercel. Code can call getRun(runId).delete() for a single run or deleteRuns() for up to 100 runs at once.

Deletion only applies to finished runs; a run still in progress is skipped and keeps running. To delete a run's payload automatically as soon as it finishes, Vercel points to the retention settings instead. The feature requires workflow@5.7.0 or higher.

Why it matters if you build agents

Agents that handle sensitive inputs or outputs can now purge that payload data for a specific run without losing the run's history in observability. Batch deletion of up to 100 runs makes cleanup of many finished runs practical in code.

Deletion skips runs that are still going, so cleanup logic should wait for a run to finish. For automatic removal at completion, developers should configure retention settings rather than relying on manual deletion.

Get stories like this every weekday

One short email with the day's agent tooling news.

Subscribe