##### Excluding features from a group by IDs

[[fg-exclude-features-by-ids]]When a feature group is included into another group or a config, certain features can be excluded from the included feature set by simply specifying their IDs.

Suppose, we have defined the following group:
[source,xml]
----
<feature-group-spec name="group1" xmlns="urn:jboss:galleon:feature-group:1.0">

  <feature spec="feature1">
    <param name="id" value="a1"/>
  </feature>
  <feature spec="feature1">
    <param name="id" value="a2"/>
  </feature>
  <feature spec="feature2">
    <param name="id" value="b1"/>
  </feature>
  <feature spec="feature2">
    <param name="id" value="b2"/>
  </feature>

</feature-group-spec>
----

Here is how `feature1:id=a1` and `feature2:id=b1` can be excluded when `group1` is added a configuration:
[source,xml]
----
<config name="main">
  <feature-group name="group1">
    <exclude feature-id="feature1:id=a1"/>
    <exclude feature-id="feature2:id=b1"/>
  </feature-group>
</config>
----

The config will include `feature1:id=a2` and `feature2:id=b2`.
