capint
8/3/2015 - 11:02 AM

Eclipse >> Resource >> Project >> Delete a project

Eclipse >> Resource >> Project >> Delete a project

IProject project;
//*** IProject.delete(boolean deleteContent, boolean force, IProgressMonitor monitor)
project.delete(false, true, monitor_p);
IProject[] projects = ResourcesPlugin.getWorkspace().getRoot().getProjects();

for (IProject project : projects) {
  project.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
  project.delete(true, new NullProgressMonitor());
}