@Override
	public void delete(Element element, String outerBlockNames)
			throws RemoteException {
	    if((null == element.toString()) || ("" == element.toString())){
	    	return;
	    }
	    
	    // outerBlockNames is "" search all conf
	    if("".equals(outerBlockNames.trim())){
	    	confText = ReadConf();
	    	//confText not contains element, return @
			String editconfText = BlockDeleteElement(confText,element);
			// write to local conf file
			WriteConf(editconfText);
	    }
	    else{
		    if(CheckOuterBlockNames(outerBlockNames)){
		    	throw new RemoteException("outerBlockNames is not correct,outerBlockNames ="+outerBlockNames);
		    }
		    
		    //If there is no index in outerBlockNames, default the first block.
		    if(!outerBlockNames.contains(":")){
		    	outerBlockNames += ":0";
		    }
	
		    HashMap<String,String> objHashMap=EditCommon(outerBlockNames);
		    String BlockText = objHashMap.get("blocktext");
		    int BlockLength = Integer.parseInt(objHashMap.get("blocklength"));
		    int nblockNameNum = Integer.parseInt(objHashMap.get("nblocknamenum"));
	
	    	//BlockText not contains element, return @
		    String editBlockText = BlockDeleteElement(BlockText,element);
			
			String newConfText = GetPreBlockText(confText,nblockNameNum)+editBlockText
					+GetSufBlockText(confText,nblockNameNum+BlockLength);
	
			// write to local conf file
			WriteConf(newConfText);
	    }
	    
		WriteRemoteConf();
	}