title: quick way to remove all applications from stopped glassfish in netbeans?
body: <p>I'd like a quick script to remove all applications from glassfish 3.1 from Netbeans.</p>
  
  <p>I work on a couple of different applications. Sometimes, I switch back and forth and I'd want to start glassfish without starting all previously deployed applications.</p>
  
  <p>Most of the time, I just remove all "application" and "application-ref" elements from domain.xml.</p>
  
  <p>Can I do the same with a simple trick (ant task or something else)?</p>