# Cancel statement execution

Launch stage: Public Preview

`POST /api/2.0/sql/warehouses/{warehouse_id}/statements/{statement_id}/cancel`

Requests that an executing statement be canceled. Callers must poll for status to see the
 terminal state. The cancel response is empty; receiving a response indicates successful receipt.

API scopes: sql

## Path parameters

- `warehouse_id` (string, required)
  The ID of the SQL warehouse that ran the statement.
- `statement_id` (string, required)
  The statement ID is returned upon successfully submitting a SQL statement, and is a required
   reference for all subsequent calls.

## Response

```json
{}
```

