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

# Bulk Delete Submissions

> Delete multiple submissions at once.



## OpenAPI

````yaml DELETE /forms/{id}/submissions
openapi: 3.1.0
info:
  title: FormBnB API
  version: 1.0.0
  description: API for FormBnB - Form backend as a service
servers:
  - url: https://api.formbnb.com
security: []
paths:
  /forms/{id}/submissions:
    delete:
      tags:
        - Forms
        - Submissions
      summary: Bulk delete submissions
      description: Delete multiple submissions at once.
      parameters:
        - schema:
            type: string
            description: Form ID
          required: true
          name: id
          in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkDeleteRequest'
      responses:
        '200':
          description: Submissions deleted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BulkDeleteResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Form not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    BulkDeleteRequest:
      type: object
      properties:
        submissionIds:
          type: array
          items:
            type: string
          minItems: 1
          description: Array of submission IDs to delete
      required:
        - submissionIds
    BulkDeleteResponse:
      type: object
      properties:
        success:
          type: boolean
        deleted:
          type: number
      required:
        - success
        - deleted
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT or API Key
      description: >-
        Authentication using either a FormBnB session JWT (issued by /auth) or
        an API key (prefixed with sk_). Both token types are passed as Bearer
        tokens in the Authorization header.

````