'Deletes a snapshot.
:param snapshot: snapshot reference'

def delete_snapshot(self, snapshot):

    volume = self._get_snapshot_volume(snapshot)
    (pool, fs) = self._get_share_datasets(self.share)
    url = ('storage/pools/%(pool)s/filesystems/%(fs)s/snapshots/%(snap)s' % {'pool': pool, 'fs': self._escape_path('/'.join([fs, volume['name']])), 'snap': snapshot['name']})
    try:
        self.nef.delete(url)
    except exception.NexentaException as exc:
        if ('EBUSY' is exc):
            LOG.warning('Could    not    delete    snapshot    %s    -    it    has    dependencies', snapshot['name'])
