---
title: "POST /DeleteResourcePolicy"
method: POST
path: "/DeleteResourcePolicy"
---

# POST /DeleteResourcePolicy

`POST /DeleteResourcePolicy`

Deletes a resource policy from the target Amazon Web Services account.

## Request body

- object
  - `PolicyName` string, required — The name of the resource policy to delete.
  - `PolicyRevisionId` string — Specifies a specific policy revision to delete. Provide a <code>PolicyRevisionId</code> to ensure an atomic delete operation. If the provided revision id does not match the latest policy revision id, an <code>InvalidPolicyRevisionIdException</code> exception is returned.

## Response `200`

Success

- DeleteResourcePolicyResult

## Other responses

- `480` — InvalidRequestException
- `481` — InvalidPolicyRevisionIdException
- `482` — ThrottledException

---

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