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

# Delete Group

> Endpoint deletes the group / hierarchy node when following conditions are true: group exists, is not customer (root) node, is allowed to be deleted, group / node hasn't assigned any vehicle or person and it does not have any children group. If it deletes it returns 200 code if not either 400 or 409



## OpenAPI

````yaml https://api.connectedfleet.michelin.com/fleet-management/api-docs delete /public/v1/customer/{customerId}/group/{nodeId}
openapi: 3.0.1
info:
  title: Fleet management
  description: >-
    A comprehensive administration pack enabling full control over fleet
    structures, users, drivers, vehicles and operational data.
  contact:
    name: Masternaut
    url: https://www.masternaut.com
    email: support@masternautconnect.com
  version: 124.0.2607160821
servers:
  - url: https://api.connectedfleet.michelin.com/fleet-management
    description: Product Server
security:
  - bearerAuth: []
tags:
  - name: /driver
    description: Driver Operations
  - name: /group
    description: Group operations
  - name: /location/category
    description: Location category management operations
  - name: /location
    description: Location management operations
  - name: /role
    description: Role operations
  - name: /tokenInformation
    description: Token operations
  - name: /user
    description: User operations
  - name: /maintenance
    description: Vehicle maintenance operations
  - name: /vehicle
    description: Vehicle management operations
paths:
  /public/v1/customer/{customerId}/group/{nodeId}:
    delete:
      tags:
        - /group
      summary: Delete Group
      description: >-
        Endpoint deletes the group / hierarchy node when following conditions
        are true: group exists, is not customer (root) node, is allowed to be
        deleted, group / node hasn't assigned any vehicle or person and it does
        not have any children group. If it deletes it returns 200 code if not
        either 400 or 409
      operationId: deleteGroup
      parameters:
        - name: customerId
          in: path
          required: true
          schema:
            type: string
        - name: nodeId
          in: path
          description: ID of group to be deleted
          required: true
          schema:
            type: string
          example: groupID
      responses:
        '200':
          description: OK - group has been deleted
        '400':
          description: >-
            When group to be deleted is not visible to user.

            When group is customer (root) node or it is not allowed to be
            deleted.
          content:
            application/json;charset=UTF-8:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ApiErrorDto'
        '409':
          description: When group contains any person or vehicle or it has children nodes.
          content:
            application/json;charset=UTF-8:
              schema:
                $ref: '#/components/schemas/ApiErrorDto'
components:
  schemas:
    ApiErrorDto:
      type: object
      properties:
        errorCode:
          type: integer
          format: int32
        errorMessage:
          type: string
        offendingFields:
          type: array
          items:
            type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````