---
title: "POST /#X-Amz-Target=AmazonAthena.DeletePreparedStatement"
method: POST
path: "/#X-Amz-Target=AmazonAthena.DeletePreparedStatement"
---

# POST /#X-Amz-Target=AmazonAthena.DeletePreparedStatement

`POST /#X-Amz-Target=AmazonAthena.DeletePreparedStatement`

Deletes the prepared statement with the specified name from the specified workgroup.

## Headers

- `X-Amz-Target` 'AmazonAthena.DeletePreparedStatement', required

## Request body

- DeletePreparedStatementInput
  - `StatementName` string, required — The name of the prepared statement to delete.
  - `WorkGroup` string, required — The workgroup to which the statement to be deleted belongs.

## Response `200`

Success

- DeletePreparedStatementOutput

## Other responses

- `480` — InternalServerException
- `481` — InvalidRequestException
- `482` — ResourceNotFoundException

---

[API](https://skmtc.net/aws/apis/athena.md) · [All operations](https://skmtc.net/aws/apis/athena/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/athena/versions/0aec8c61283d/schema)
