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

# DELETE /policy/{resourceArn}/

`DELETE /policy/{resourceArn}/`

Removes an existing policy from a bot or bot alias. If the resource doesn't have a policy attached, Amazon Lex returns an exception.

## Path parameters

- `resourceArn` string, required

## Query parameters

- `expectedRevisionId` string

## Response `204`

Success

- DeleteResourcePolicyResponse
  - `resourceArn` string — The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy was deleted 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/lexv2-models.md) · [All operations](https://skmtc.net/aws/apis/lexv2-models/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/lexv2-models/versions/6997ba482d72/schema)
