---
title: "DELETE /tx/{id}"
method: DELETE
path: "/tx/{id}"
tags: ["transaction"]
---

# DELETE /tx/{id}

`DELETE /tx/{id}`

Discard a transaction

## Path parameters

- `id` integer, required

## Response `200`

ok

## Other responses

- `400` — error
- `default`

## Changes

- **2025-06-02** `60812f5416c5` — 2 info
  - api operation id `discard_transaction` removed and replaced with `transaction_discard`
  - removed the non-success response with the status `404`

[Change history](https://skmtc.dev/sourcenetwork/apis/defradb-api/changes/tx/:id/delete.md)

---

[API](https://skmtc.dev/sourcenetwork/apis/defradb-api.md) · [All operations](https://skmtc.dev/sourcenetwork/apis/defradb-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sourcenetwork/defradb-api/revisions/4a12c8ff8b60/schema)
