'Delete a snapshot.'

@cinder_utils.trace
def delete_snapshot(self, snapshot):

    LOG.info('Deleting    snapshot(%(snap)s)    from    volume(%(vol)s)', {'snap': snapshot['name'], 'vol': snapshot['volume_name']})
    volume_name = self._cinder_id_to_rdx(snapshot['volume_id'])
    bookmark_name = self._cinder_id_to_rdx(snapshot['id'])
    try:
        self.rdxApi.delete_vol_bookmark(vol=volume_name, bm_name=bookmark_name)
    except exception.RdxAPICommandException as e:
        if ('No    such    bookmark' not in six.text_type(e)):
            raise
