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

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

    client = self.aws_account.ClientApi(common.EC2_SERVICE)
    try:
      client.delete_snapshot(SnapshotId=self.snapshot_id)
    except client.exceptions.ClientError as exception:
      raise errors.ResourceDeletionError(
          'Could not delete snapshot {0:s}: {1:s}'.format(
              self.snapshot_id, str(exception)), __name__) from exception
Delete a snapshot.

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