---
title: "POST /#X-Amz-Target=AmazonEC2ContainerRegistry_V20150921.DeletePullThroughCacheRule"
method: POST
path: "/#X-Amz-Target=AmazonEC2ContainerRegistry_V20150921.DeletePullThroughCacheRule"
---

# POST /#X-Amz-Target=AmazonEC2ContainerRegistry_V20150921.DeletePullThroughCacheRule

`POST /#X-Amz-Target=AmazonEC2ContainerRegistry_V20150921.DeletePullThroughCacheRule`

Deletes a pull through cache rule.

## Headers

- `X-Amz-Target` 'AmazonEC2ContainerRegistry_V20150921.DeletePullThroughCacheRule', required

## Request body

- DeletePullThroughCacheRuleRequest
  - `ecrRepositoryPrefix` string, required — The Amazon ECR repository prefix associated with the pull through cache rule to delete.
  - `registryId` string — The Amazon Web Services account ID associated with the registry that contains the pull through cache rule. If you do not specify a registry, the default registry is assumed.

## Response `200`

Success

- DeletePullThroughCacheRuleResponse
  - `ecrRepositoryPrefix` string — The Amazon ECR repository prefix associated with the request.
  - `upstreamRegistryUrl` string — The upstream registry URL associated with the pull through cache rule.
  - `createdAt` string, date-time — The timestamp associated with the pull through cache rule.
  - `registryId` string — The registry ID associated with the request.

## Other responses

- `480` — ServerException
- `481` — InvalidParameterException
- `482` — ValidationException
- `483` — PullThroughCacheRuleNotFoundException

---

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