---
title: "Delete a trace file"
method: DELETE
path: "/sessions/{userId}/traces/{filename}"
tags: ["Sessions"]
---

# Delete a trace file

`DELETE /sessions/{userId}/traces/{filename}`

Removes a specific Playwright trace zip from the server.

## Path parameters

- `userId` string, required
- `filename` string, required

## Response `200`

Trace deleted.

- object
  - `ok` boolean

## Other responses

- `400` — Invalid filename.
- `403` — Forbidden.
- `404` — Trace not found.
- `500` — Server error.

## Changes

- **2026-04-25** `c1d40cacc1fd` — 1 info
  - endpoint added
- **2026-04-25** `80bb18f1c19f` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/jo-inc/apis/camofox-browser/changes/sessions/:userId/traces/:filename/delete.md)

---

[API](https://skmtc.dev/jo-inc/apis/camofox-browser.md) · [All operations](https://skmtc.dev/jo-inc/apis/camofox-browser/llms.txt) · [OpenAPI document](https://skmtc.dev/jo-inc/apis/camofox-browser/revisions/497e1f7d9303?raw)
