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

# Delete custom fields



## OpenAPI

````yaml post /v1/custom-field/delete
openapi: 3.0.0
info:
  title: Thena Platform
  description: The Thena Platform API description
  version: 1.0.0
  contact: {}
servers:
  - url: https://platform.thena.ai
    description: Platform
  - url: http://localhost:8000
    description: Local
security:
  - ApiKey: []
tags: []
paths:
  /v1/custom-field/delete:
    post:
      tags:
        - Custom fields
      description: >-
        This endpoint is only available for standard and enterprise tier
        organizations.
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteCustomFieldDto'
      responses:
        '204':
          description: Custom fields deleted successfully!
          content:
            application/json:
              example:
                data: null
                status: true
                message: Custom fields deleted successfully!
                timestamp: '2024-01-15T10:30:00Z'
        '400':
          description: Bad Request - Validation error from service or validator
          content:
            application/json:
              example:
                message: >-
                  Some fields could not be deleted due to version mismatch or
                  concurrent modification, failed fields:
                  cf_01jb4xm9qr3kv5w8n2p7s9t1
                statusCode: 400
                timestamp: '2024-01-15T10:30:00Z'
        '401':
          description: User is not authenticated!
        '403':
          description: User does not have access to this resource!
        '404':
          description: Resource not found!
        '422':
          description: Unprocessable Entity - Validation failed
          content:
            application/json:
              example:
                message:
                  - property: fields
                    constraints:
                      isArray: Fields must be an array
                      arrayMinSize: At least one field is required
                  - property: fields.0.fieldId
                    constraints:
                      isString: fieldId must be a string
                      minLength: fieldId must be a non-empty string
                error: Validation Error
                statusCode: 422
        '429':
          description: Too many requests!
        '500':
          description: Something went wrong!
        '503':
          description: This service/resource is currently unavailable.
components:
  schemas:
    DeleteCustomFieldDto:
      type: object
      properties:
        fields:
          type: array
          items:
            $ref: '#/components/schemas/DeleteFieldItemDto'
      required:
        - fields
    DeleteFieldItemDto:
      type: object
      properties:
        fieldId:
          type: string
        version:
          type: number
      required:
        - fieldId
        - version
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: 'Enter your API key '

````