def remove(path):
    path = os.path.expanduser(path)

    if not os.path.isabs(path):
        raise SaltInvocationError('File path must be absolute: {0}'.format(path))

    try:
        if os.path.isfile(path) or os.path.islink(path):
            os.remove(path)
            return True
        elif os.path.isdir(path):
            shutil.rmtree(path)
            return True
    except (OSError, IOError) as exc:
        raise CommandExecutionError(
            'Could not remove \'{0}\': {1}'.format(path, exc)
        )
    return False
With required 'irmc_deploy_iso' in share.
dataset/ETHPy150Open saltstack/salt/salt/modules/file.py/remove--crossover with--dataset/ETHPy150Open openstack/ironic/ironic/tests/unit/drivers/modules/irmc/test_boot.py/IRMCDeployPrivateMethodsTestCase.test__parse_driver_info_in_share