# Remove from group

<figure><img src="https://111806075-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mg4otljWU9FsHKYhTsW%2Fuploads%2FPVv0X5j2wrr4jxxkPWNs%2Fimage.png?alt=media&#x26;token=939fbe74-b328-416f-8bc8-e6a48b941922" alt=""><figcaption></figcaption></figure>

Removes Message Originator Entity from Entity Group.

Following Message Originator types are allowed: **Customer**, **Asset**, **Device**.

Finds target Entity Group by group name pattern and then removes Originator Entity from this group.

* **Group name pattern** - can be set direct group name or pattern can be used, that will be resolved to the real group name using Message metadata.
* **Groups cache expiration time** - specifies maximum time interval is seconds allowed to store found entity group records. 0 value means that records will never expire.

Message will be routed via **Failure** chain in the following cases:

* When Originator entity type is not supported.
* Target entity group doesn’t exist.

In other cases Message will be routed via **Success** chain.
