  def Delete(self) -> None:
    """Delete a snapshot.

    Raises:
      ResourceDeletionError: If the snapshot could not be deleted.
    """

    try:
      logger.info('Deleting snapshot: {0:s}'.format(self.name))
      request = self.compute_client.snapshots.begin_delete(
          self.resource_group_name, self.name)
      while not request.done():
        sleep(5)  # Wait 5 seconds before checking snapshot status again
      logger.info('Snapshot {0:s} successfully deleted.'.format(self.name))
    except azure_exceptions.CloudError as exception:
      raise errors.ResourceDeletionError(
          'Could not delete snapshot {0:s}: {1!s}'.format(
              self.resource_id, exception), __name__) from exception
Delete a snapshot.

Raises:
ResourceDeletionError: If the snapshot could not be deleted.
libcloudforensics/providers/azure/internal/compute.py