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

# Delete records from a table or view

> Removes records from the table or view matching the table_id.

`results` reports the records the request removed. `change_options.on_conflict`
decides what happens when a named record is the source of a linked record: the
default removes it and takes it out of the records that link to it, and
`block` refuses the whole request instead. The request is refused if any named
record does not exist, if the account cannot delete the table's records, or if
`change_options` names a member or a value this operation does not publish.

Send an `Idempotency-Key` with every write. A retry that arrives after the
first request has finished and reuses the key and the payload answers with
the original response instead of applying the delete a second time. Two
requests racing with one key can both execute, and a response too large to
store is not replayed.



## OpenAPI

````yaml /api-reference/specs/tables.yaml delete /tables/v2/tables/{table_id}/records
openapi: 3.1.0
info:
  title: Tables API
  description: >-
    Read and write Tables by Zapier data — create and manage tables and their
    fields, and create, query, update and delete the records in them.
  version: 1.0.0
  contact:
    url: https://docs.zapier.com
servers:
  - url: https://api.zapier.com
    description: Production
security:
  - OAuth: []
tags:
  - name: Fields
    description: Operations for managing the fields on a table.
  - name: Records
    description: Operations for managing the records in a table.
  - name: Tables
    description: Operations for creating and managing tables.
paths:
  /tables/v2/tables/{table_id}/records:
    delete:
      tags:
        - Records
      summary: Delete records from a table or view
      description: >-
        Removes records from the table or view matching the table_id.


        `results` reports the records the request removed.
        `change_options.on_conflict`

        decides what happens when a named record is the source of a linked
        record: the

        default removes it and takes it out of the records that link to it, and

        `block` refuses the whole request instead. The request is refused if any
        named

        record does not exist, if the account cannot delete the table's records,
        or if

        `change_options` names a member or a value this operation does not
        publish.


        Send an `Idempotency-Key` with every write. A retry that arrives after
        the

        first request has finished and reuses the key and the payload answers
        with

        the original response instead of applying the delete a second time. Two

        requests racing with one key can both execute, and a response too large
        to

        store is not replayed.
      operationId: deleteTableRecords
      parameters:
        - name: table_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
            examples:
              - 01563e3a-b5d3-d676-4c61-efb99302bd5b
            title: Table Id
        - name: Idempotency-Key
          in: header
          required: false
          schema:
            description: >-
              Optional idempotency key (max 255 chars). The same key with the
              same payload returns the original response for up to 24 hours; the
              same key with a different payload returns 422.
            title: Idempotency-Key
            oneOf:
              - type: string
                maxLength: 255
              - type: 'null'
          description: >-
            Optional idempotency key (max 255 chars). The same key with the same
            payload returns the original response for up to 24 hours; the same
            key with a different payload returns 422.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/V2DeleteTableRecordsRequest'
            examples:
              Remove two records:
                summary: Remove two records
                description: >-
                  A record id is the UUID form `V2Record.id` publishes, not the
                  internal ULID
                value:
                  record_ids:
                    - 01563e3a-b5d3-d676-4c61-efb99302bd5b
                    - 01563e3a-b5d3-d676-4c61-efb99302bd5c
              Refuse to remove a linked record's source:
                summary: Refuse a linked source
                description: >-
                  The default removes the record and takes it out of the records
                  that link to it; `block` refuses the request instead, when
                  some of those links should be dealt with first
                value:
                  record_ids:
                    - 01563e3a-b5d3-d676-4c61-efb99302bd5b
                  change_options:
                    on_conflict: block
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2DeleteTableRecordsResponse'
          headers:
            X-RateLimit-Limit:
              description: Requests permitted in the current rate-limit window.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests still permitted in the current window, after this one.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: >-
                Seconds until quota next frees up. A delta, like Retry-After --
                not an epoch timestamp.
              schema:
                type: integer
        '400':
          headers:
            X-RateLimit-Limit:
              description: Requests permitted in the current rate-limit window.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests still permitted in the current window, after this one.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: >-
                Seconds until quota next frees up. A delta, like Retry-After --
                not an epoch timestamp.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorsResponse'
          description: Bad Request
        '401':
          headers:
            X-RateLimit-Limit:
              description: Requests permitted in the current rate-limit window.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests still permitted in the current window, after this one.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: >-
                Seconds until quota next frees up. A delta, like Retry-After --
                not an epoch timestamp.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorsResponse'
          description: Unauthorized
        '403':
          description: >-
            Refused: the token's scope does not permit this operation
            (`auth:insufficient_scope`), or the table's sharing does not grant
            the caller this action (`permissions:errors`).
          headers:
            X-RateLimit-Limit:
              description: Requests permitted in the current rate-limit window.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests still permitted in the current window, after this one.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: >-
                Seconds until quota next frees up. A delta, like Retry-After --
                not an epoch timestamp.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorsResponse'
        '404':
          description: >-
            Not found: no table or view has that id (`table:notfound`), or no
            record with that id is on the table, or the view the request names
            does not contain it (`record:notfound`), or the table was deleted
            while the request was in flight (`schema:table_deleted`).
          headers:
            X-RateLimit-Limit:
              description: Requests permitted in the current rate-limit window.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests still permitted in the current window, after this one.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: >-
                Seconds until quota next frees up. A delta, like Retry-After --
                not an epoch timestamp.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorsResponse'
        '422':
          description: >-
            Cannot process: the request names more items than the operation's
            maxItems allows (`max_values_exceeded`, with the limit in
            meta.max_values), or the key was reused with a different payload
            (`idempotency:key_mismatch`).
          headers:
            X-RateLimit-Limit:
              description: Requests permitted in the current rate-limit window.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests still permitted in the current window, after this one.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: >-
                Seconds until quota next frees up. A delta, like Retry-After --
                not an epoch timestamp.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorsResponse'
        '429':
          headers:
            Retry-After:
              description: Number of seconds to wait before retrying the request
              schema:
                type: integer
            X-RateLimit-Limit:
              description: Requests permitted in the current rate-limit window.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests still permitted in the current window, after this one.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: >-
                Seconds until quota next frees up. A delta, like Retry-After --
                not an epoch timestamp.
              schema:
                type: integer
          description: Too Many Requests
        '503':
          description: >-
            The Public API Gateway could not reach the authorization service.
            The condition is transient; retry the request.
          headers:
            Retry-After:
              description: Number of seconds to wait before retrying the request
              schema:
                type: integer
      security:
        - OAuth:
            - external
            - table:record:delete
components:
  schemas:
    V2DeleteTableRecordsRequest:
      properties:
        record_ids:
          items:
            type: string
            pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
            format: uuid
            examples:
              - 01563e3a-b5d3-d676-4c61-efb99302bd5b
          type: array
          maxItems: 1000
          minItems: 1
          title: Record Ids
          description: >-
            Identifiers of the records to remove, in the form `V2Record.id`
            publishes, and at most 1000 of them in one request. The request is
            refused if any of them does not exist
        change_options:
          description: >-
            Options that control how the deleted records' changes are processed
            and delivered
          allOf:
            - $ref: '#/components/schemas/V2DeleteTableRecordsChangeOptions'
      additionalProperties: false
      type: object
      required:
        - record_ids
      title: V2DeleteTableRecordsRequest
      description: The records to remove, and how their changes are delivered.
    V2DeleteTableRecordsResponse:
      properties:
        results:
          items:
            $ref: '#/components/schemas/V2Record'
          type: array
          title: Results
          description: >-
            The records this request removed, each with the state it was in
            before the removal
        meta:
          $ref: '#/components/schemas/V2EmptyMeta'
      type: object
      required:
        - results
        - meta
      title: V2DeleteTableRecordsResponse
      description: The records the request removed.
    ErrorsResponse:
      properties:
        detail:
          type: string
          title: Detail
          description: Detailed error description
        code:
          type: string
          title: Code
          description: Error code identifying the type of error
        message:
          type: string
          title: Message
          description: Human-readable error message
          default: ''
        support_id:
          type: string
          title: Support Id
          description: Support identifier for tracking this error
          default: ''
          x-zapier-id-format-exempt: true
        meta:
          additionalProperties: true
          type: object
          title: Meta
          description: Additional metadata about the error
        errors:
          items:
            $ref: '#/components/schemas/Error'
          type: array
          title: Errors
          description: List of specific errors that occurred
      type: object
      required:
        - detail
        - code
        - meta
        - errors
      title: ErrorsResponse
      description: Represents an API error response with detailed information.
    V2DeleteTableRecordsChangeOptions:
      properties:
        change_mode:
          type: string
          enum:
            - silent
            - normal
            - per_settings
          title: Change Mode
          description: >-
            Whether the deletion triggers downstream automations. 'silent' never
            triggers them, 'normal' always does, and 'per_settings' follows the
            table's own send-records setting
          default: normal
        stash_mode:
          type: string
          enum:
            - none
            - store
            - per_settings
          title: Stash Mode
          description: >-
            Whether the deletion is kept for pending automations. 'none' keeps
            nothing, 'store' keeps it, and 'per_settings' follows the table's
            own send-records setting
          default: none
        on_conflict:
          type: string
          enum:
            - block
            - ignore
          title: On Conflict
          description: >-
            What to do when a named record is the source of a linked record:
            'block' refuses the whole request, 'ignore' deletes the record and
            removes it from the records that link to it
          default: ignore
        session_nonce:
          title: Session Nonce
          description: >-
            Identifies the session that made the change, so a caller subscribed
            to realtime updates can recognize and ignore its own writes
          oneOf:
            - type: integer
            - type: 'null'
      additionalProperties: false
      type: object
      title: V2DeleteTableRecordsChangeOptions
      description: >-
        Options that control how a deletion's changes are processed and
        delivered.
      required: []
    V2Record:
      properties:
        id:
          type: string
          pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
          format: uuid
          title: Id
          description: Unique identifier for the record
          examples:
            - 01563e3a-b5d3-d676-4c61-efb99302bd5b
        data:
          additionalProperties: true
          type: object
          title: Data
          description: >-
            The record's data, keyed by field key (`f{id}`). On an account whose
            field-slug rollout has reached it, a field that has a user-defined
            slug is keyed by the slug instead
        created_at:
          type: string
          format: date-time
          title: Created At
          description: When the record was created
        edited_at:
          type: string
          format: date-time
          title: Edited At
          description: When the record was last modified
        deleted_at:
          title: Deleted At
          description: >-
            Timestamp when the record was moved to the trash, or null if it is
            active
          oneOf:
            - type: string
              format: date-time
            - type: 'null'
        is_source_record:
          title: Is Source Record
          description: >-
            Whether this record is currently used as the source of a linked
            record field, somewhere else in the account. Null when the operation
            did not compute it: `queryTableRecords` skips it when
            `annotate_linked_source=false`, and the create and update operations
            never compute it
          oneOf:
            - type: boolean
            - type: 'null'
        errors:
          additionalProperties:
            $ref: '#/components/schemas/V2RecordFieldError'
          type: object
          title: Errors
          description: Validation errors for the record's fields, keyed like `data`
      type: object
      required:
        - id
        - data
        - created_at
        - edited_at
      title: V2Record
      description: A record of a table.
    V2EmptyMeta:
      properties: {}
      type: object
      title: V2EmptyMeta
      description: No metadata accompanies this response.
      required: []
    Error:
      properties:
        title:
          type: string
          title: Title
          description: Human-readable error title or summary
        status:
          title: Status
          description: HTTP status code associated with this error
          oneOf:
            - type: integer
            - type: 'null'
        code:
          title: Code
          description: Error code identifying the type of error
          oneOf:
            - type: string
            - type: 'null'
        detail:
          title: Detail
          description: Detailed description of the error
          oneOf:
            - type: string
            - type: 'null'
        meta:
          title: Meta
          description: Additional metadata about the error
          oneOf:
            - additionalProperties: true
              type: object
            - type: 'null'
      type: object
      required:
        - title
      title: Error
      description: Represents an error that occurred during API request processing.
    V2RecordFieldError:
      properties:
        severity:
          type: string
          enum:
            - error
            - warning
          title: Severity
          description: Whether the value was rejected ('error') or accepted with a warning
        value:
          title: Value
          description: The value that failed validation or raised the warning
        message:
          type: string
          title: Message
          description: Technical description of the validation failure
        human_message:
          title: Human Message
          description: >-
            A version of `message` suitable for display to a person, when the
            failure has one
          oneOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - severity
        - value
        - message
      title: V2RecordFieldError
      description: Why one field of a record was rejected, or flagged as suspicious.
  securitySchemes:
    OAuth:
      type: oauth2
      description: OAuth 2.0 authentication.
      flows:
        authorizationCode:
          authorizationUrl: https://zapier.com/oauth/authorize
          tokenUrl: https://zapier.com/oauth/token
          scopes:
            external: Scope that gives access to all Public APIs
            table:read: Grants table:read access
            table:write: Grants table:write access
            table:delete: Grants table:delete access
            table:field:read: Grants table:field:read access
            table:field:write: Grants table:field:write access
            table:field:delete: Grants table:field:delete access
            table:record:write: Grants table:record:write access
            table:record:delete: Grants table:record:delete access
            table:record:read: Grants table:record:read access
        clientCredentials:
          tokenUrl: https://zapier.com/oauth/token
          scopes:
            external: Scope that gives access to all Public APIs
            table:read: Grants table:read access
            table:write: Grants table:write access
            table:delete: Grants table:delete access
            table:field:read: Grants table:field:read access
            table:field:write: Grants table:field:write access
            table:field:delete: Grants table:field:delete access
            table:record:write: Grants table:record:write access
            table:record:delete: Grants table:record:delete access
            table:record:read: Grants table:record:read access

````