:doc:`Lightsail <../../lightsail>` / Client / delete_container_image

**********************
delete_container_image
**********************



.. py:method:: Lightsail.Client.delete_container_image(**kwargs)

  

  Deletes a container image that is registered to your Amazon Lightsail container service.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteContainerImage>`_  


  **Request Syntax**
  ::

    response = client.delete_container_image(
        serviceName='string',
        image='string'
    )
    
  :type serviceName: string
  :param serviceName: **[REQUIRED]** 

    The name of the container service for which to delete a registered container image.

    

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

    The name of the container image to delete from the container service.

     

    Use the ``GetContainerImages`` action to get the name of the container images that are registered to a container service.

     

    .. note::

      

      Container images sourced from your Lightsail container service, that are registered and stored on your service, start with a colon ( ``:``). For example, ``:container-service-1.mystaticwebsite.1``. Container images sourced from a public registry like Docker Hub don't start with a colon. For example, ``nginx:latest`` or ``nginx``.

      

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`Lightsail.Client.exceptions.ServiceException`

  
  *   :py:class:`Lightsail.Client.exceptions.InvalidInputException`

  
  *   :py:class:`Lightsail.Client.exceptions.NotFoundException`

  
  *   :py:class:`Lightsail.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`Lightsail.Client.exceptions.UnauthenticatedException`

  
  *   :py:class:`Lightsail.Client.exceptions.RegionSetupInProgressException`

  