public static void removeNature(IProject project,String natureId) throws CoreException {
  if (!project.hasNature(natureId)) {
    return;
  }
  IProjectDescription description=project.getDescription();
  List<String> newNatures=new ArrayList<String>();
  newNatures.addAll(Arrays.asList(description.getNatureIds()));
  newNatures.remove(natureId);
  description.setNatureIds(newNatures.toArray(new String[0]));
  project.setDescription(description,null);
}

public static void removeNature ( IProject project , String natureId ) throws CoreException { if ( ! project . hasNature ( natureId ) ) { return ; } IProjectDescription description = project . getDescription ( ) ; List < String > newNatures = new ArrayList < String > ( ) ; newNatures . addAll ( Arrays . asList ( description . getNatureIds ( ) ) ) ; newNatures . remove ( natureId ) ; description . setNatureIds ( newNatures . toArray ( new String [ 0 ] ) ) ; project . setDescription ( description , null ) ; }
removes the nature id from a project ' s description .
