To remove any program element from the workspace, select Delete from the element's pop-up menu in the Workbench or any browser. Deleting a program element also deletes all its contained elements; for example, if you delete a package, you also delete all the classes and interfaces in the package.
A message asks you to confirm your intent to delete the object, and reminds you that deleting an element from the workspace does not remove it from the repository. You can add the element back from the repository if you need it later.
Deleting a program element can introduce problems if, for example, classes remaining in the workspace extend a class that you delete. These problems will immediately be added to the Problems page for the appropriate program element.
In the team development environment, where all program elements are stored in a shared
repository, deleting a package or class from the workspace also deletes that program
element from the containing project or package. You must own the package or class in order
to delete it from the workspace. Anyone on the team can delete projects from the
workspace, as this does not alter the team baseline.
Adding projects and packages from the repository to the workspace
Adding types and methods from the repository to the workspace
Finding and fixing problems