Removing Spring Beans from Application Context
<p>I am using the below to display all spring beans in the context. How can I remove beans from the context?</p>

<pre><code> ConfigurableApplicationContext ctx = SpringApplication.run(ProxyApplication.class, args);
 for(String beanName:ctx.getBeanDefinitionNames()){
     System.out.println(beanName);
 }
</code></pre>