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

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

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

Deletes the workgroup with the specified name. The primary workgroup cannot be deleted.

## Headers

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

## Request body

- DeleteWorkGroupInput
  - `WorkGroup` string, required — The unique name of the workgroup to delete.
  - `RecursiveDeleteOption` boolean — The option to delete the workgroup and its contents even if the workgroup contains any named queries, query executions, or notebooks.

## Response `200`

Success

- DeleteWorkGroupOutput

## Other responses

- `480` — InternalServerException
- `481` — InvalidRequestException

---

[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)
