'Deletes a snapshot.'

def delete_snapshot(self, snapshot):

    LOG.debug('zfssa.delete_snapshot:    snapshot=%s', snapshot['name'])
    lcfg = self.configuration
    numclones = self.zfssa.num_clones(lcfg.zfssa_pool, lcfg.zfssa_project, snapshot['volume_name'], snapshot['name'])
    if (numclones > 0):
        LOG.error('Snapshot    %s:    has    clones', snapshot['name'])
        raise exception.SnapshotIsBusy(snapshot_name=snapshot['name'])
    self.zfssa.delete_snapshot(lcfg.zfssa_pool, lcfg.zfssa_project, snapshot['volume_name'], snapshot['name'])
