To undeploy an MBean, use the asadmin delete-mbean command. This removes its registration from the MBeanServer, but does not delete its code. Here is an example asadmin delete-mbean command in which TextPatterns is the implementation class. The --target option is not required.
asadmin delete-mbean --user adminuser --target server1 TextPatterns |
For full details on the asadmin delete-mbean command, see the Sun GlassFish Enterprise Server v2.1.1 Reference Manual.