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

    gce_disk_client = self.GceApi().disks() # pylint: disable=no-member
    try:
      request = gce_disk_client.delete(
          project=self.project_id, disk=self.name, zone=self.zone)
      request.execute()
    except HttpError as exception:
      if exception.resp.status == 404:
        logger.warning((
            'Can not find resource {0:s}, it might be already '
            'deleted. API call resulted in the following error: '
            '{1:s}').format(self.name, str(exception)))
      else:
        logger.error((
            'While deleting GCE disk {0:s} the following error occurred: '
            '{1:s}').format(self.name, str(exception)))
        raise errors.ResourceDeletionError(
            'Could not delete disk {0:s}: {1!s}'.format(self.name, exception),
            __name__) from exception
    logger.info(self.FormatLogMessage('Deleted Disk: {0:s}'.format(self.name)))
Delete a Disk.
libcloudforensics/providers/gcp/internal/compute.py