Actions46
- Account Actions
- Group Actions
- Journal Actions
- Queue Actions
- Receiving Actions
- Sending Actions
- Service Actions
- Status Actions
Group → Remove Group Participant
AI-generatedSummary
Removes one participant from a WhatsApp group through the GREEN-API instance, by sending a POST to the removeGroupParticipant endpoint for each input item.
Inputs
- Group ID (required) — Chat ID of the group to remove the participant from, in the form 12345678901234567890@g.us.
- Participant Chat ID (required) — Chat ID of the member to remove, in the form 79000000000@c.us.
Output shape
One output item per input item. Its json is the raw response from GREEN-API's removeGroupParticipant endpoint. Each item is paired to its input item.
The source doesn't define the response fields. The GREEN-API response typically indicates success, but this isn't confirmed here. If Continue On Fail is enabled, a failed item returns json { error: message } and the run continues. Otherwise the first failure throws a node error. Requests are made sequentially, one per item. Requires the greenApiAuthApi credential (instance ID and API token). The instance's account normally needs admin rights in the group, though the node doesn't check this.
Examples
Example 1: Remove a specific user from a group
Resource: Group; Operation: Remove Group Participant; Group ID: 12345678901234567890@g.us; Participant Chat ID: 79000000000@c.us
Example 2: Remove many members listed in incoming items
Set Group ID to a fixed value and Participant Chat ID to an expression such as {{ $json.chatId }}. Enable Continue On Fail so one failure doesn't stop the batch.