:doc:`ECR <../../ecr>` / Client / delete_pull_through_cache_rule

******************************
delete_pull_through_cache_rule
******************************



.. py:method:: ECR.Client.delete_pull_through_cache_rule(**kwargs)

  

  Deletes a pull through cache rule.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DeletePullThroughCacheRule>`_  


  **Request Syntax**
  ::

    response = client.delete_pull_through_cache_rule(
        ecrRepositoryPrefix='string',
        registryId='string'
    )
    
  :type ecrRepositoryPrefix: string
  :param ecrRepositoryPrefix: **[REQUIRED]** 

    The Amazon ECR repository prefix associated with the pull through cache rule to delete.

    

  
  :type registryId: string
  :param registryId: 

    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.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'ecrRepositoryPrefix': 'string',
          'upstreamRegistryUrl': 'string',
          'createdAt': datetime(2015, 1, 1),
          'registryId': 'string',
          'credentialArn': 'string',
          'customRoleArn': 'string',
          'upstreamRepositoryPrefix': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **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** *(datetime) --* 

        The timestamp associated with the pull through cache rule.

        
      

      - **registryId** *(string) --* 

        The registry ID associated with the request.

        
      

      - **credentialArn** *(string) --* 

        The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret associated with the pull through cache rule.

        
      

      - **customRoleArn** *(string) --* 

        The ARN of the IAM role associated with the pull through cache rule.

        
      

      - **upstreamRepositoryPrefix** *(string) --* 

        The upstream repository prefix associated with the pull through cache rule.

        
  
  **Exceptions**
  
  *   :py:class:`ECR.Client.exceptions.ServerException`

  
  *   :py:class:`ECR.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`ECR.Client.exceptions.ValidationException`

  
  *   :py:class:`ECR.Client.exceptions.PullThroughCacheRuleNotFoundException`

  