---
title: "DELETE /policy/{resourceArn}/statements/{statementId}/"
method: DELETE
path: "/policy/{resourceArn}/statements/{statementId}/"
---

# DELETE /policy/{resourceArn}/statements/{statementId}/

`DELETE /policy/{resourceArn}/statements/{statementId}/`

Deletes a policy statement from a resource policy. If you delete the last statement from a policy, the policy is deleted. If you specify a statement ID that doesn't exist in the policy, or if the bot or bot alias doesn't have a policy attached, Amazon Lex returns an exception.

## Path parameters

- `resourceArn` string, required
- `statementId` string, required

## Query parameters

- `expectedRevisionId` string

## Response `204`

Success

- DeleteResourcePolicyStatementResponse
  - `resourceArn` string — The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy statement was removed from.
  - `revisionId` string — The current revision of the resource policy. Use the revision ID to make sure that you are updating the most current version of a resource policy when you add a policy statement to a resource, delete a resource, or update a resource.

## Other responses

- `480` — ResourceNotFoundException
- `481` — PreconditionFailedException
- `482` — InternalServerException
- `483` — ThrottlingException

---

[API](https://skmtc.net/aws/apis/models-lex-v2.md) · [All operations](https://skmtc.net/aws/apis/models-lex-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/models-lex-v2/versions/4ee1a1257ae7/schema)
