public boolean removeMainView(String viewName) {
        for (int i = 0; i < viewPorts.size(); i++) {
            if (viewPorts.get(i).getName().equals(viewName)) {
                viewPorts.remove(i);
                return true;
            }
        }
        return false;
    }
Removes the main ViewPort with the specified name.

@param viewName The main ViewPort name to remove
@return True if the ViewPort was removed successfully.

@see #createMainView(java.lang.String, com.jme3.renderer.Camera)
jme3-core/src/main/java/com/jme3/renderer/RenderManager.java