# Remove Group Members / Admin

Below API allows to Remove Group Members or Admin

{% hint style="warning" %}
Leaving yourself from a group will not delete a group as long as the group have members, if you remove all admin members including you from a group then WhatsApp automatically assign admin privilege to a member in the group and further you may not able to manage the group. **So please be careful while leaving a group created by you.**&#x20;
{% endhint %}

## Remove Group Members / Admin

<mark style="color:green;">`POST`</mark> `https://pickyassist.com/app/api/v2/remove-group-members`

This API allows you to remove group members or admin

#### Request Body

| Name      | Type   | Description                                                                                                                                                                                                                                                                         |
| --------- | ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| token     | string | Your API Token for authentication                                                                                                                                                                                                                                                   |
| group\_id | string | Pass the Group ID you would like to update the Group Info                                                                                                                                                                                                                           |
| type      | string | <p>Please pass the type of users you want to remove from the group<br><br>0 = Members<br>1 = Admin<br><br><strong>Will not work with WhatsApp Web Automation the number you passed will be deleted from the WhatsApp Group irrespective Whether it's a Member or Admin</strong></p> |
| number    | array  | <p>This is an array and you need to pass the WhatsApp number in order to remove a member / admin  from a group<br><br>The number must be a member / admin in the group, please pass country code along with number without 0 or +</p>                                               |

{% tabs %}
{% tab title="200 " %}

```javascript
{
    "status": 100,
    "message": "Success"
}
```

{% endtab %}
{% endtabs %}

## Sample Request Body JSON

```javascript
{
	"token": "7b18871699f16225850e9832a24547105cfe3",
	"group_id": "9190055074-16187483",
	"number": [
    	"9194XXXXXXX"
	],
	"application":10
}

```

## Sample Response

```javascript
{
    "status": 100,
    "message": "Success"
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.pickyassist.com/api-documentation-v2/whatsapp-group-api/remove-group-members-admin.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
