---
title: deleteTicket
description: Gateway RPC for soft-deleting a work doc.
maturity: stable
apiVersion: v1
---

- Method: `deleteTicket`
- Scope: `ticket:write`
- Transports: HTTP RPC, WebSocket RPC
- Request: `{ path }`
- Response: `{ path, deleted }`

Soft-deletes a work doc by `path`, stamping a `deleted_at_ms` tombstone rather than removing the row. The row survives so `listTickets` hides it without losing history, and the file-watcher never materializes a tombstone back to disk. An unknown or already-deleted `path` returns `TicketNotFound`.

Errors are versioned as `v1` and include `InvalidRequest`, `Unauthorized`, `Forbidden`, `TicketNotFound`, and `Internal`.
