/** * Delete given project with content. * * @param project * @throws CoreException */ public static void delete(final IProject project) throws CoreException { delete(project, true); }
/** * Delete project by name. * * @param projectName * @throws CoreException */ public static void deleteProject(String projectName) throws CoreException { IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot(); IProject project = root.getProject(projectName); if (project.exists()) delete(project); }