:doc:`WorkSpaces <../../workspaces>` / Client / delete_workspace_image

**********************
delete_workspace_image
**********************



.. py:method:: WorkSpaces.Client.delete_workspace_image(**kwargs)

  

  Deletes the specified image from your account. To delete an image, you must first delete any bundles that are associated with the image and unshare the image if it is shared with other accounts.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DeleteWorkspaceImage>`_  


  **Request Syntax**
  ::

    response = client.delete_workspace_image(
        ImageId='string'
    )
    
  :type ImageId: string
  :param ImageId: **[REQUIRED]** 

    The identifier of the image.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`WorkSpaces.Client.exceptions.ResourceAssociatedException`

  
  *   :py:class:`WorkSpaces.Client.exceptions.InvalidResourceStateException`

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

  