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

# Delete All Custom Data Records

> Delete every record in a custom data table

This removes records from the table but keeps the table schema.


## OpenAPI

````yaml DELETE /data/{table_name}
openapi: 3.1.0
info:
  title: Public API v1
  description: >-
    Public API v1 requiring API keys.


    **Timestamps:** All datetime fields in API responses are returned in UTC
    using ISO 8601 format (e.g., `2024-01-15T14:30:00Z`). When filtering by date
    parameters, provide timestamps in ISO 8601 format.
  version: 0.1.0
servers:
  - url: https://api.prod.usesimple.ai/api/v1
    description: Production API Server
security: []
paths:
  /data/{table_name}:
    delete:
      tags:
        - Custom Data
      summary: Delete All Custom Data Records
      description: >-
        Delete all records from a custom data table without deleting the table
        schema.
      operationId: delete_all_custom_data_records_data__table_name__delete
      parameters:
        - name: table_name
          in: path
          required: true
          schema:
            type: string
            pattern: ^[A-Za-z0-9_-]+$
            title: Table Name
          description: Custom data table name.
      responses:
        '200':
          description: Custom Data Records Deleted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteAllCustomDataRecordsResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Custom Data Table Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - APIKeyHeader: []
components:
  schemas:
    DeleteAllCustomDataRecordsResponse:
      type: object
      required:
        - success
        - message
        - deleted_count
      properties:
        success:
          type: boolean
          default: true
        message:
          type: string
          title: Message
        deleted_count:
          type: integer
          title: Deleted Count
      title: Delete All Custom Data Records Response
    ErrorResponse:
      type: object
      required:
        - status
        - success
        - error
        - errors
      properties:
        status:
          type: string
          default: error
        success:
          type: boolean
          default: false
        error:
          type: string
          title: Error
        errors:
          items:
            type: string
          type: array
          title: Errors
      title: Error Response
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: Authorization

````