To uninstall the Sun Web Console, run /usr/lib/webconsole/setup -u.
Do not run this command if you are in the /usr/lib/webconsole directory or any of the related subdirectories, otherwise pkgrm fails.