'Delete debug source'

def delete_debug_source(self):

    if ((self.debug_enable == 'no_use') and (not self.debug_level)):
        conf_str = CE_DELETE_DEBUG_SOURCE_HEADER
        if self.module_name:
            conf_str += ('<moduleName>%s</moduleName>' % self.module_name)
        if self.channel_id:
            conf_str += ('<icChannelId>%s</icChannelId>' % self.channel_id)
        conf_str += CE_DELETE_DEBUG_SOURCE_TAIL
    else:
        conf_str = CE_MERGE_DEBUG_SOURCE_HEADER
        if self.module_name:
            conf_str += ('<moduleName>%s</moduleName>' % self.module_name)
        if self.channel_id:
            conf_str += ('<icChannelId>%s</icChannelId>' % self.channel_id)
        if (self.debug_enable != 'no_use'):
            conf_str += ('<dbgEnFlg>%s</dbgEnFlg>' % CHANNEL_DEFAULT_DBG_STATE.get(self.channel_id))
        if self.debug_level:
            conf_str += ('<dbgEnLevel>%s</dbgEnLevel>' % CHANNEL_DEFAULT_DBG_LEVEL.get(self.channel_id))
        conf_str += CE_MERGE_DEBUG_SOURCE_TAIL
    recv_xml = set_nc_config(self.module, conf_str)
    if ('<ok/>' not in recv_xml):
        self.module.fail_json(msg='Error:    Delete    debug    source    failed.')
    cmd = 'undo    info-center    source'
    if self.module_name:
        cmd += ('    %s' % self.module_name)
    if self.channel_id:
        cmd += ('    channel    %s' % self.channel_id)
    if (self.debug_enable != 'no_use'):
        cmd += '    debug    state'
    if self.debug_level:
        cmd += '    level'
    self.updates_cmd.append(cmd)
    self.changed = True
