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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content