:doc:`SageMaker <../../sagemaker>` / Client / delete_image_version

********************
delete_image_version
********************



.. py:method:: SageMaker.Client.delete_image_version(**kwargs)

  

  Deletes a version of a SageMaker AI image. The container image the version represents isn't deleted.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteImageVersion>`_  


  **Request Syntax**
  ::

    response = client.delete_image_version(
        ImageName='string',
        Version=123,
        Alias='string'
    )
    
  :type ImageName: string
  :param ImageName: **[REQUIRED]** 

    The name of the image to delete.

    

  
  :type Version: integer
  :param Version: 

    The version to delete.

    

  
  :type Alias: string
  :param Alias: 

    The alias of the image to delete.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`SageMaker.Client.exceptions.ResourceNotFound`

  
  *   :py:class:`SageMaker.Client.exceptions.ResourceInUse`

  