---
title: "POST /#X-Amz-Target=PaymentCryptographyControlPlane.DeleteResourcePolicy"
method: POST
path: "/#X-Amz-Target=PaymentCryptographyControlPlane.DeleteResourcePolicy"
---

# POST /#X-Amz-Target=PaymentCryptographyControlPlane.DeleteResourcePolicy

`POST /#X-Amz-Target=PaymentCryptographyControlPlane.DeleteResourcePolicy`

Removes the resource-based policy attached to an Amazon Web Services Payment Cryptography key.

**Cross-account use:** This operation can't be used across different Amazon Web Services accounts.

**Related operations:**

*   [PutResourcePolicy](https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_PutResourcePolicy.html)
    
*   [GetResourcePolicy](https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetResourcePolicy.html)

## Headers

- `X-Amz-Target` 'PaymentCryptographyControlPlane.DeleteResourcePolicy', required

## Request body

- DeleteResourcePolicyInput
  - `ResourceArn` string, required — The <code>KeyARN</code> of the key whose resource-based policy you want to delete.

## Response `200`

Success

- DeleteResourcePolicyOutput

## Other responses

- `480` — ServiceUnavailableException
- `481` — ValidationException
- `482` — ConflictException
- `483` — AccessDeniedException
- `484` — ResourceNotFoundException
- `485` — ThrottlingException
- `486` — InternalServerException

---

[API](https://skmtc.net/aws/apis/payment-cryptography.md) · [All operations](https://skmtc.net/aws/apis/payment-cryptography/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/payment-cryptography/revisions/1b0b83160e8d/schema)
