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

# Delete Protocol Group

> Delete a protocol group.

The protocols in the group are **not** deleted — the database's
``ON DELETE SET NULL`` ungroups them, since a group is metadata about
protocols and never their owner.

Parameters
----------
group_id : str
    ID of the group to delete.

Returns
-------
dict
    Success message.

Raises
------
NotFoundError
    If the group does not exist or belongs to another organization.
ForbiddenError
    If the caller lacks ``protocol_group:delete`` in the project.



## OpenAPI

````yaml https://api.ionworks.com/openapi.json delete /protocol_groups/{group_id}
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://api.ionworks.com
    description: Production
security: []
paths:
  /protocol_groups/{group_id}:
    delete:
      tags:
        - protocol_groups
      summary: Delete Protocol Group
      description: |-
        Delete a protocol group.

        The protocols in the group are **not** deleted — the database's
        ``ON DELETE SET NULL`` ungroups them, since a group is metadata about
        protocols and never their owner.

        Parameters
        ----------
        group_id : str
            ID of the group to delete.

        Returns
        -------
        dict
            Success message.

        Raises
        ------
        NotFoundError
            If the group does not exist or belongs to another organization.
        ForbiddenError
            If the caller lacks ``protocol_group:delete`` in the project.
      operationId: delete_protocol_group_protocol_groups__group_id__delete
      parameters:
        - name: group_id
          in: path
          required: true
          schema:
            type: string
            title: Group Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: >-
                  Response Delete Protocol Group Protocol Groups  Group Id 
                  Delete
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````