---
title: "Delete a group"
url: "https://earlyaccess.developers.bynder.com/apis/groups-1/versions/8b5e3751-b1f6-4df8-9f5d-f494f76062f0/operations/deleteGroup"
---

> Full API specification: https://earlyaccess.developers.bynder.com/apis/groups-1/versions/8b5e3751-b1f6-4df8-9f5d-f494f76062f0.md

# Delete a group

`DELETE` `/api/1/groups/{groupId}`

Operation ID: `deleteGroup`

Deletes a group and removes all its members from it. Requires the **GROUPMANAGEMENT** security role.

## Path parameters

- `groupId` (string, uuid, required) - ID of the group to delete (hyphens optional).

## Responses

- `204` - Group deleted successfully. No content is returned.
- `401` - Missing or invalid authentication. The response body is empty.
- `403` - The authenticated user does not have the **GROUPMANAGEMENT** security role.
- `404` - Group not found.
- `422` - Validation error (malformed group ID).

## OpenAPI definition

```yaml
openapi: 3.1.0
info:
  title: Groups
  version: 1.0.0
servers:
  - url: https://{your-bynder-domain}/
paths:
  /api/1/groups/{groupId}:
    delete:
      description: |
        Deletes a group and removes all its members from it.

        Requires the **GROUPMANAGEMENT** security role.
      operationId: deleteGroup
      parameters:
        - description: ID of the group to delete (hyphens optional).
          in: path
          name: groupId
          required: true
          schema:
            format: uuid
            type: string
      responses:
        "204":
          description: Group deleted successfully. No content is returned.
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/Forbidden"
        "404":
          $ref: "#/components/responses/NotFound"
        "422":
          description: Validation error (malformed group ID).
      security:
        - permanentToken:
            - GROUPMANAGEMENT
        - OAuth2:
            - GROUPMANAGEMENT
      summary: Delete a group
      tags:
        - Groups (Preferred)
security:
  - permanentToken:
      - GROUPMANAGEMENT
  - OAuth2:
      - GROUPMANAGEMENT
components:
  responses:
    Unauthorized:
      description: Missing or invalid authentication. The response body is empty.
    Forbidden:
      description: The authenticated user does not have the **GROUPMANAGEMENT**
        security role.
    NotFound:
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/NotFoundResponse"
      description: Group not found.
  schemas:
    NotFoundResponse:
      properties:
        detail:
          example: Not Found
          type: string
      type: object
  securitySchemes:
    permanentToken:
      in: header
      name: Authorization
      type: apiKey
    OAuth2:
      flows:
        authorizationCode:
          authorizationUrl: https://{your-auth-url}
          scopes:
            GROUPMANAGEMENT: Grants permission to manage groups`
          tokenUrl: https://{your-bynder-domain}/v6/authentication/oauth2/token
        clientCredentials:
          scopes:
            GROUPMANAGEMENT: Grants permission to manage groups
          tokenUrl: https://{your-bynder-domain}/v6/authentication/oauth2/token
      type: oauth2
```
