> ## 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 Custom Data Table

> Delete an empty custom data table

Tables can only be deleted after all records are removed. A table also cannot be deleted while another table references it.


## OpenAPI

````yaml DELETE /data/tables/{id}
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/tables/{id}:
    delete:
      tags:
        - Custom Data
      summary: Delete Custom Data Table
      description: >-
        Delete an empty custom data table. Tables that still contain records or
        are referenced by another table cannot be deleted.
      operationId: delete_custom_data_table_data_tables__id__delete
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
            title: ID
          description: Custom data table ID.
      responses:
        '200':
          description: Custom Data Table Deleted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteCustomDataTableResponse'
        '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'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - APIKeyHeader: []
components:
  schemas:
    DeleteCustomDataTableResponse:
      type: object
      required:
        - success
      properties:
        success:
          type: boolean
          default: true
      title: Delete Custom Data Table 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

````