public static void removeProject(Project project, boolean delete) {
		int sym = project.getSym();
		boolean found = false;
		ArrayList<Project> projects = new ArrayList<Project>();
		
		if( project.isLocal() )
			projects = getProjects(project.getDir());
		else
			projects = getProjects(sym);
		
		int i = 0;

		for (Project cur : projects) {
			if (cur.getName().equals(project.getName())){
				found = true;
				break;
			}

			i++;
		}
		if(!found)
			return;
		projects.remove(i);
		
		if( project.isLocal() )
			saveProjects(project.getDir());
		else
			saveProjects(sym);

		if (delete)
			for (SymitarFile file : project.getFiles())
					if( file.isLocal() )
						new File( file.getPath() ).delete();
					else
						RepDevMain.SYMITAR_SESSIONS.get(sym).removeFile(file);

	}