# Delete Group

## URL

<mark style="color:red;">`DELETE`</mark> `https://api.smspartner.fr/v1/groupe/delete`

#### **Required Parameters**

<table data-full-width="false"><thead><tr><th width="180">Name</th><th>Value</th></tr></thead><tbody><tr><td><code>apiKey</code></td><td><a href="https://my.smspartner.fr/dashboard/api">Your API key</a></td></tr><tr><td><code>groupId</code></td><td>The ID of the group to be deleted</td></tr></tbody></table>

#### Request

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

```
curl --location --request POST 'http://api.smspartner.fr/v1/groupe/delete' \
--header 'Content-Type: application/json' \
--data-raw '{
   "apiKey": "YOUR_API_KEY",
   "groupId": "ID GROUPE"
}'
```

{% endtab %}
{% endtabs %}

#### **Response**

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

```json
{
   "success": true,
   "code": 200
}
```

{% endtab %}
{% endtabs %}

#### Errors

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

```json
{
  "success": false,
  "code": 10,
  "message": "Invalid API key"
}
```

{% endtab %}
{% endtabs %}

**Error Codes**

| Response Code | Message                  |
| ------------- | ------------------------ |
| 1             | groupId is required      |
| 10            | API key is required      |
| 404           | The group does not exist |
