> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bouncy.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Group

> Delete a group (links in the group are not deleted, only ungrouped)

## Request

### Headers

### Path Parameters

<ParamField path="groupId" type="string" required>
  The group ID to delete

  **Example:** `grp_abc123xyz`
</ParamField>

<Note>
  Deleting a group does **not** delete the links in it. Links will simply be ungrouped and remain in your account.
</Note>

## Response

<ResponseField name="id" type="string">
  ID of the deleted group
</ResponseField>

<ResponseField name="message" type="string">
  Success message
</ResponseField>

<ResponseField name="linksUngrouped" type="number">
  Number of links that were ungrouped
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE https://api.bouncy.ai/v1/groups/grp_abc123xyz \
    -H "Authorization: Bearer bcy_live_pk_YOUR_API_KEY"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    'https://api.bouncy.ai/v1/groups/grp_abc123xyz',
    {
      method: 'DELETE',
      headers: {
        'Authorization': 'Bearer bcy_live_pk_YOUR_API_KEY'
      }
    }
  );

  const result = await response.json();
  console.log(`Ungrouped ${result.linksUngrouped} links`);
  ```

  ```python Python theme={null}
  import requests

  response = requests.delete(
      'https://api.bouncy.ai/v1/groups/grp_abc123xyz',
      headers={'Authorization': 'Bearer bcy_live_pk_YOUR_API_KEY'}
  )

  result = response.json()
  print(f"Ungrouped {result['linksUngrouped']} links")
  ```
</RequestExample>

<ResponseExample>
  ```json 200 Success theme={null}
  {
    "id": "grp_abc123xyz",
    "message": "Group deleted successfully",
    "linksUngrouped": 15
  }
  ```

  ```json 404 Not Found theme={null}
  {
    "error": {
      "code": "group_not_found",
      "message": "Group not found"
    }
  }
  ```
</ResponseExample>
