def remove_datasource(jboss_config, name, profile=None):
 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) + operation)
 return __salt__['jboss7_cli.run_operation'](jboss_config, operation, fail_on_error=False)

def remove_datasource ( jboss_config , name , profile = None ) : 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 ) + operation ) return __salt__ [ 'jboss7_cli.run_operation' ] ( jboss_config , operation , fail_on_error = False )
remove an existing datasource from the running jboss instance .