Menu

Delete a run's data on demand in Workflow SDK - Vercel
📰

Delete a run's data on demand in Workflow SDK - Vercel

Vercel News·Peter Wielander·11 days ago
#tOp7LO87
#vercel#delete#workflow#deleteruns#finished
Reading 0:00
15s threshold

The Workflow SDK now lets you delete a finished run's stored data on demand. This feature gives you the ability to quickly meet compliance and security requirements when sensitive data needs to be purged from run payloads.

Deleting a run's data deletes any inputs, outputs, hook payloads, and error traces for the run and its related entities. This does not delete the run's metadata : the run is still listed in observability. Attributes, hook tokens, and timings for steps and events can still be inspected.

You can delete a run's data from the Vercel Dashboard, or via the CLI:

# Locally

pnpx workflow delete < runId >

# For runs on Vercel

pnpx workflow delete < runId > --backend vercel --env preview

You can also delete a run's data programmatically from your code:

import { deleteRuns , getRun } from 'workflow/api' ;

await getRun ( runId ) .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.