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

# Departments (DELETE)

> Auto-generated from serverless function departments.



## OpenAPI

````yaml /openapi.json delete /departments
openapi: 3.0.3
info:
  title: Crovant API
  version: 1.0.0
  description: >-
    Auto-generated from the serverless handlers in `netlify/functions/`.
    Endpoints are served under `/api`; the legacy `/.netlify/functions` prefix
    resolves to the same handlers.
servers:
  - url: https://crovant.com/api
    description: Production
  - url: /api
    description: Relative to the current origin
security: []
paths:
  /departments:
    delete:
      tags:
        - Departments
      summary: Departments (DELETE)
      description: Auto-generated from serverless function departments.
      operationId: delete_departments
      parameters:
        - name: workspaceId
          in: query
          required: false
          schema:
            type: string
        - name: includeArchived
          in: query
          required: false
          schema:
            type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                workspaceId:
                  type: string
                name:
                  type: string
                color:
                  type: string
                description:
                  type: string
                id:
                  type: string
                action:
                  type: string
      responses:
        '200':
          description: Success

````