If you are deleting a 7.x release, your deployment will say primaveraweb instead of p6.
If you are deleting an 8.x release, your deployment will say p6.
Start the WebSphere Application Server.
Launch the WebSphere Application Server Administrative Console.
On the Administrative Console Main screen:
In the left-hand navigation, expand Applications.
Click WebSphere enterprise applications.
Select the option next to your deployment (for example, p6).
Click Uninstall.
In the message or in the task menu, click Save .
On the Save to Master Configuration screen, click Save.
If you will use the same home directory for the new deployment, delete the existing WAR or EAR file from that directory to avoid conflict with the new files.
If you installed the help and tutorials WAR files, repeat these steps.