Project admins can remove traces in two ways:
| Action | When to use it | What happens |
|---|---|---|
| Archive | Everyday clean-up, for example of test runs | The traces are hidden everywhere. An admin can restore them until the retention period ends |
| Delete forever (GDPR) | A person asks you to erase their data | The traces are hidden everywhere, then erased from storage within a few hours. It can't be undone |
Both need the traces:delete permission, which the Admin role has. Only a person signed in to LangWatch can remove traces. An API key or a CLI login can't.
Neither action lowers your usage or your invoice. The traces were billed when they arrived.
Archive traces
Open a trace and pick Archive trace in its menu, or select several traces in the table and click Archive. They leave the traces table, analytics, exports, simulations, coding agent sessions and dataset suggestions.
Click Undo in the message that follows to bring them back. Later, open a link to the trace and restore it there. The page also says when the trace will be erased.
Archived traces are erased when the retention period of the project ends. Archiving and restoring are recorded in the audit log.
Delete a person's data
Open Settings > Data deletion
Enter the user ID your app sends on each trace, and click Find traces. You see how many traces there are in each project. No trace is deleted at this step.
Delete the traces
Add a reference if you have one, for example a ticket number. Type the user ID to confirm.
Follow the request
The request goes from Marked for deletion to Erasing to Done. You get an email when it is done.
The request covers every project of the organization where you can remove traces, unless you pick fewer. Traces that arrive later with the same user ID are kept. File the request again to delete them.
To delete selected traces instead, use Delete forever (GDPR) in the trace menu, or under More when you select traces in the table. These also file a request.
If a step keeps failing, the request reads Failed and its record says what could not be erased. The traces marked so far stay hidden. Click Retry to finish it.
What is erased
- Spans, inputs, outputs, metadata and the events they came from
- Logs of the trace and its media files, unless another trace uses the same file
- Evaluation results, annotations, pins and sent alerts
- The trace's part of experiments, simulations and coding agent sessions
- The end user ID, labels and metadata on AI Gateway spend, and on the copies kept for your spend webhooks
Webhooks that were already delivered are in your own systems. LangWatch can't erase those.
What is kept
- Usage and costs. Amounts, token counts and budget totals never go down.
- The request itself. It keeps the user ID, who asked, when, the reference, the projects and the number of traces. It holds no trace content.
- Budgets per end user. If you set a budget per end user, the user ID stays in that budget. Its running total holds the ID, the amounts, the counts and the period. Its alerts name the ID and the limit. The list of requests charged to it holds the ID with each request's ID, model, token counts, amount and time. None of these holds trace content.
- Queued budget updates. An update to such a budget can hold the user ID for up to 30 days. If the update failed for good, it keeps the ID until someone handles it.
The record of each request says the same, on the page and in the PDF and CSV downloads.
Read the request history
Settings > Data deletion lists every request, newest first. Click one to see each step with its time, and download it as a PDF or CSV for an auditor. Only admins of a shared project see the history. Being the admin of your own personal workspace isn't enough.
Also check: Data Retention for how long LangWatch keeps traces, and Data Privacy for what it stores in the first place.