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

***********************
delete_lifecycle_policy
***********************



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

  

  Deletes the lifecycle policy associated with the specified repository.

  

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


  **Request Syntax**
  ::

    response = client.delete_lifecycle_policy(
        registryId='string',
        repositoryName='string'
    )
    
  :type registryId: string
  :param registryId: 

    The Amazon Web Services account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.

    

  
  :type repositoryName: string
  :param repositoryName: **[REQUIRED]** 

    The name of the repository.

    

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

    
    ::

      {
          'registryId': 'string',
          'repositoryName': 'string',
          'lifecyclePolicyText': 'string',
          'lastEvaluatedAt': datetime(2015, 1, 1)
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        The registry ID associated with the request.

        
      

      - **repositoryName** *(string) --* 

        The repository name associated with the request.

        
      

      - **lifecyclePolicyText** *(string) --* 

        The JSON lifecycle policy text.

        
      

      - **lastEvaluatedAt** *(datetime) --* 

        The time stamp of the last time that the lifecycle policy was run.

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

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

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

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

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

  