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

# Delete a form

> Delete a specific form for the authenticated organization.



## OpenAPI

````yaml delete /forms/{formId}
openapi: 3.1.0
info:
  title: Formbox API
  description: Formbox is an all in one forms solution for your business.
  version: 0.0.1
  contact:
    name: Formbox Support
    email: support@formbox.app
    url: https://docs.formbox.app/api-reference
servers:
  - url: https://app.formbox.app/api/v1
    description: Production API
security: []
paths:
  /forms/{formId}:
    delete:
      tags:
        - Forms
      summary: Delete a form
      description: Delete a specific form for the authenticated organization.
      operationId: deleteForm
      parameters:
        - in: path
          name: formId
          required: true
          description: The unique ID of the form.
          example: clux0rgak00011...
          schema:
            $ref: '#/components/schemas/FormIdParam'
        - in: header
          name: api-key
          description: The API key.
          schema:
            $ref: '#/components/schemas/ApiKeyHeaderValue'
          required: true
      responses:
        '200':
          description: A specific form.
          headers:
            Retry-After:
              description: Seconds until the current rate limit window resets.
              example: '60'
              schema:
                $ref: '#/components/schemas/RetryAfterHeader'
              required: true
            X-RateLimit-Limit:
              description: The number of requests allowed in the current rate limit window.
              example: '100'
              schema:
                $ref: '#/components/schemas/RateLimitLimitHeader'
              required: true
            X-RateLimit-Remaining:
              description: >-
                The number of requests remaining in the current rate limit
                window.
              example: '99'
              schema:
                $ref: '#/components/schemas/RateLimitRemainingHeader'
              required: true
            X-RateLimit-Reset:
              description: The Unix timestamp when the current rate limit window resets.
              example: '1711910400'
              schema:
                $ref: '#/components/schemas/RateLimitResetHeader'
              required: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteFormResponse'
        '401':
          $ref: '#/components/responses/401'
        '403':
          description: Your API key requires `full` access scope to delete a form.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - forbidden
                        description: A short code indicating the error code returned.
                        example: forbidden
                      message:
                        type: string
                        description: A human readable explanation of what went wrong.
                        example: >-
                          Your API key requires full access scope to delete a
                          form.
                    required:
                      - code
                      - message
                required:
                  - error
        '404':
          description: >-
            No form with this ID exists in your organization. Verify the
            `formId` is correct and belongs to the organization associated with
            your API key.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - not_found
                        description: A short code indicating the error code returned.
                        example: not_found
                      message:
                        type: string
                        description: A human readable explanation of what went wrong.
                        example: >-
                          No form with this ID exists in your organization.
                          Check that the formId is correct and belongs to the
                          organization associated with your API key.
                    required:
                      - code
                      - message
                required:
                  - error
        '422':
          $ref: '#/components/responses/422'
        '429':
          $ref: '#/components/responses/429'
        '500':
          $ref: '#/components/responses/500'
      security:
        - token: []
components:
  schemas:
    FormIdParam:
      type: string
    ApiKeyHeaderValue:
      type: string
      description: The API key.
      title: api-key
    RetryAfterHeader:
      type: string
    RateLimitLimitHeader:
      type: string
    RateLimitRemainingHeader:
      type: string
    RateLimitResetHeader:
      type: string
    DeleteFormResponse:
      type: object
      properties:
        formId:
          type: string
          description: The unique ID of the form that was deleted.
      required:
        - formId
  responses:
    '401':
      description: >-
        No valid API key was provided. Include your API key in the `api-key`
        request header. You can generate API keys in your Formbox organization
        settings.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: object
                properties:
                  code:
                    type: string
                    enum:
                      - unauthorized
                    description: A short code indicating the error code returned.
                    example: unauthorized
                  message:
                    type: string
                    description: A human readable explanation of what went wrong.
                    example: >-
                      No API key provided. Pass your API key in the api-key
                      header.
                required:
                  - code
                  - message
            required:
              - error
    '422':
      description: The request parameters or body failed validation.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: object
                properties:
                  code:
                    type: string
                    enum:
                      - unprocessable_entity
                    description: A short code indicating the error code returned.
                    example: unprocessable_entity
                  message:
                    type: string
                    description: A human readable explanation of what went wrong.
                    example: The request was well-formed but contained semantic errors.
                required:
                  - code
                  - message
            required:
              - error
    '429':
      description: >-
        Too many requests. Check the X-RateLimit-* headers and retry after the
        reset time.
      headers:
        Retry-After:
          description: Seconds until the current rate limit window resets.
          example: '60'
          schema:
            $ref: '#/components/schemas/RetryAfterHeader'
          required: true
        X-RateLimit-Limit:
          description: The number of requests allowed in the current rate limit window.
          example: '100'
          schema:
            $ref: '#/components/schemas/RateLimitLimitHeader'
          required: true
        X-RateLimit-Remaining:
          description: The number of requests remaining in the current rate limit window.
          example: '99'
          schema:
            $ref: '#/components/schemas/RateLimitRemainingHeader'
          required: true
        X-RateLimit-Reset:
          description: The Unix timestamp when the current rate limit window resets.
          example: '1711910400'
          schema:
            $ref: '#/components/schemas/RateLimitResetHeader'
          required: true
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: object
                properties:
                  code:
                    type: string
                    enum:
                      - rate_limit_exceeded
                    description: A short code indicating the error code returned.
                    example: rate_limit_exceeded
                  message:
                    type: string
                    description: A human readable explanation of what went wrong.
                    example: Too many requests. Please slow down and try again shortly.
                required:
                  - code
                  - message
            required:
              - error
    '500':
      description: An unexpected error occurred on the server.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: object
                properties:
                  code:
                    type: string
                    enum:
                      - internal_server_error
                    description: A short code indicating the error code returned.
                    example: internal_server_error
                  message:
                    type: string
                    description: A human readable explanation of what went wrong.
                    example: >-
                      An internal server error occurred. Please contact support
                      if the problem persists.
                required:
                  - code
                  - message
            required:
              - error

````