Undeploy any applications protected by the WebSphere Application Server/Portal Server agent.
Restore the deployment descriptors of these applications to their original deployment descriptors. (Backup files are useful here if you have them.)
Conditionally, if you are permanently removing the WebSphere Application Server/Portal Server agent, undeploy the agent application.
However, if you plan to re-install this agent , you don't need to undeploy the agent application.
Ensure that the WebSphere Application Server 6.1/7.0 instances that is being protected by the agent is stopped.