Please tell us why do you need to destroy the component ? Maybe you just need to remove it from the context.
For example, a session scoped-bean which occupies huge memory is created. After a while, this beans need to be destroyed in a method. How can I destroy this bean or removed from the context?
Removing from context :
Note that component removal should be done automatically whe context ends. If you need to remove it manually there is a big chance that you have placed it in to broad context. Reconcider your decision.
Thank you Bernard.