'delete snapshot.'

@proxy._trace_time
def delete_snapshot(self, snapshot):

    try:
        self._call_xiv_xcli('snapshot_delete', snapshot=snapshot['name'])
    except errors.XCLIError as e:
        error = (_('Fatal    error    in    snapshot_delete:    %(details)s') % {'details': self._get_code_and_status_or_message(e)})
        LOG.error(error)
        raise self._get_exception()(error)
