

def remove_datasource(jboss_config, name, profile=None):
    '\n    Remove an existing datasource from the running jboss instance.\n\n    jboss_config\n        Configuration dictionary with properties specified above.\n    name\n        Datasource name\n    profile\n        The profile (JBoss domain mode only)\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt \'*\' jboss7.remove_datasource \'{"cli_path": "integration.modules.sysmod.SysModuleTest.test_valid_docs", "controller": "10.11.12.13:9999", "cli_user": "jbossadm", "cli_password": "jbossadm"}\' my_datasource_name\n       '
    log.debug('======================== MODULE FUNCTION: jboss7.remove_datasource, name=%s, profile=%s', name, profile)
    operation = '/subsystem=datasources/data-source={name}:remove'.format(name=name)
    if (profile is not None):
        operation = ('/profile="{profile}"'.format(profile=profile) + jboss_config)
    return __salt__['jboss7_cli.run_operation'](jboss_config, operation, fail_on_error=False)

dataset/ETHPy150Open saltstack/salt/salt/modules/jboss7.py remove_datasource/VarMisuse@62/306 `operation`->`jboss_config`