'Delete logical volume or snapshot.
:param name: Name of LV to delete'

@utils.retry(putils.ProcessExecutionError)
def delete(self, name):

    def run_udevadm_settle():
        self._execute('udevadm', 'settle', root_helper=self._root_helper, run_as_root=True, check_exit_code=False)
    LVM_CONFIG = 'activation    {    retry_deactivation    =    1}    '
    try:
        self._execute('lvremove', '--config', LVM_CONFIG, '-f', ('%s/%s' % (self.vg_name, name)), root_helper=self._root_helper, run_as_root=True)
    except putils.ProcessExecutionError as err:
        LOG.debug('Error    reported    running    lvremove:    CMD:    %(command)s,    RESPONSE:    %(response)s', {'command': err.cmd, 'response': err.stderr})
        LOG.debug('Attempting    udev    settle    and    retry    of    lvremove...')
        run_udevadm_settle()
        LVM_CONFIG += 'devices    {    ignore_suspended_devices    =    1}'
        self._execute('lvremove', '--config', LVM_CONFIG, '-f', ('%s/%s' % (self.vg_name, name)), root_helper=self._root_helper, run_as_root=True)
        LOG.debug('Successfully    deleted    volume:    %s    after    udev    settle.', name)
