Security —

Workflow SDK allows on-demand deletion of finished run data, inputs, and outputs

The capability to programmatically remove a finished run's stored data is now available within the Workflow SDK.

Workflow SDK allows on-demand deletion of finished run data, inputs, and outputs

This functionality enables users to promptly satisfy security and compliance mandates when it is necessary to erase sensitive information contained within run payloads.

When a run's data is removed, all associated inputs, outputs, hook payloads, and error traces pertaining to that run and its related components are deleted. However, the run's metadata remains intact; consequently, the run continues to appear in observability systems. Furthermore, attributes, timings for events and steps, and hook tokens can still be reviewed.

Operators possess several avenues for executing this data removal: it can be performed through the Vercel Dashboard, utilizing the CLI, or implemented directly within application code. It is important to note that this deletion process only affects runs that have concluded; any running workflow will be bypassed and will continue its execution. For scenarios requiring payload erasure immediately upon a run's completion, the platform advises utilizing the existing retention settings as an alternative.

This feature becomes accessible upon upgrading to workflow@5.7.0 or a newer version, and further technical details can be found in the deleteRuns() reference documentation.

This enhancement directly addresses operational requirements for data governance, allowing platform participants to maintain stringent control over the lifecycle and persistence of sensitive execution data within their deployed workflows.

Why it matters

This feature directly addresses compliance and security needs by enabling the purging of sensitive data from run payloads. Operators can now ensure data lifecycle management by selectively removing specific run contents while retaining necessary metadata for observability.

Reported by Vercel.

security

Related coverage

Elsewhere in this edition