:doc:`DirectoryService <../../ds>` / Client / delete_snapshot

***************
delete_snapshot
***************



.. py:method:: DirectoryService.Client.delete_snapshot(**kwargs)

  

  Deletes a directory snapshot.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeleteSnapshot>`_  


  **Request Syntax**
  ::

    response = client.delete_snapshot(
        SnapshotId='string'
    )
    
  :type SnapshotId: string
  :param SnapshotId: **[REQUIRED]** 

    The identifier of the directory snapshot to be deleted.

    

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

    
    ::

      {
          'SnapshotId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 

      Contains the results of the  DeleteSnapshot operation.

      
      

      - **SnapshotId** *(string) --* 

        The identifier of the directory snapshot that was deleted.

        
  
  **Exceptions**
  
  *   :py:class:`DirectoryService.Client.exceptions.EntityDoesNotExistException`

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

  
  *   :py:class:`DirectoryService.Client.exceptions.ClientException`

  
  *   :py:class:`DirectoryService.Client.exceptions.ServiceException`

  