code: func (gce *Cloud) DeleteSnapshot(snapshotToDelete string) error {
  
  	snapshot, err := gce.getSnapshotByName(snapshotToDelete)
  	if err != nil {
  		return err
  	}
  	//no snapshot is found
  	if snapshot == nil {
  		return nil
  	}
  
  	deleteOp, err := gce.service.Snapshots.Delete(gce.projectID, snapshotToDelete).Do()
  	if err != nil {
  		return err
  	}
  	return gce.waitForGlobalOp(deleteOp)
  }
docs: // DeleteSnapshot deletes a snapshot