How do I remove all deployments from a server group without knowing their names in JBoss EAP 6?

Solution Verified - Updated -

Issue

Let's assume you have a big server-group with a high number of deployments and you want undeploy all of them at once without knowing their names.
Then you tried something like the example bellow:

[domain@my_server_name:9999 /] /server-group=server-group-1/deployment=*:remove
{
    "outcome" => "failed",
    "failure-description" => {"domain-failure-description" => "JBAS014646: Cannot remove *"},
    "rolled-back" => true
}

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 6.2.4.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.