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

# Delete a Record

> <Warning>This is a destructive operation</Warning>



## OpenAPI

````yaml DELETE /collections/{collectionId}/records/{recordId}
openapi: 3.0.1
info:
  title: OpenAPI Sparq API
  description: >-
    This API provides access to Sparq, a sample store used to demonstrate
    features of the OpenAPI specification.
  license:
    name: MIT License
  version: 1.0.0
servers:
  - url: https://api.sparq.ai/v2
security:
  - bearerAuth: []
paths:
  /collections/{collectionId}/records/{recordId}:
    delete:
      description: Delete a specific record from the collection.
      parameters:
        - name: collectionId
          in: path
          description: Unique identifier for the collection.
          required: true
          schema:
            type: string
        - name: recordId
          in: path
          description: Identifier of the record to be deleted.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Deletion response indicating success.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/AddRecordResponse'
        '401':
          description: Unauthorized. Authentication is required to access the resource.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    AddRecordResponse:
      type: object
      properties:
        status:
          type: integer
          description: Status code indicating the result of the operation.
    Error:
      type: object
      properties:
        status:
          type: integer
          description: Status code indicating the error.
        data:
          type: string
          description: Additional information about the error.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````