---
title: "ROLLBACK"
url: "https://docs.yugabyte.com/stable/api/ysql/the-sql-language/statements/txn_rollback/"
---

# ROLLBACK

Use the ROLLBACK statement to roll back the current transactions.

## Synopsis

Use the `ROLLBACK` statement to roll back the current transactions. All changes included in this transactions will be discarded.

## Syntax

- [![Grammar Icon](/icons/file-lines.svg)Grammar](#grammar-2)
- [![Diagram Icon](/icons/diagram.svg)Diagram](#diagram-2)

```output.ebnf
rollback ::= ROLLBACK [ TRANSACTION | WORK ]
```

#### rollback

ROLLBACKTRANSACTIONWORK

## Semantics

### *rollback*

```
ROLLBACK [ TRANSACTION | WORK ]
```

### WORK

Add optional keyword — has no effect.

### TRANSACTION

Add optional keyword — has no effect.

## See also

- [BEGIN](/stable/api/ysql/the-sql-language/statements/txn_begin/ "BEGIN")
- [START TRANSACTION](/stable/api/ysql/the-sql-language/statements/txn_start/ "START TRANSACTION")
- [COMMIT](/stable/api/ysql/the-sql-language/statements/txn_commit "COMMIT")
