1. Tables
Clay API Docs
  • Disclaimer
  • Authentication
    • Fetch Clay Cookies
      POST
  • Workspaces
    • Get All Workspaces in your account
      GET
  • Folders
    • Create a folder
      POST
    • Delete a folder
      DELETE
  • Resources
    • Fetch all resources
      POST
    • Search a resource in workspace
      POST
  • Workbooks
    • Create a Workbook
      POST
    • Delete a Workbook
      DELETE
  • Tables
    • Fetch all record ids in a table
      GET
    • Add a row in the table
      POST
    • Delete a row from the table
      DELETE
    • Delete all rows from a table
      DELETE
    • Run an enrichment column
      PATCH
    • Count number of rows in a Table
      GET
    • List all sources in a table
      GET
    • Add Webhook to a table
      PATCH
    • Delete a Source from the table
      DELETE
  • Credit Usage
    • Get a list of owners
      GET
    • Get User-Specific Credit Usage Report
      GET
    • Get User-Created Resources
      POST
    • Get Workspace Credit Usage Report
      GET
    • List all integrations
      GET
    • Get Integration Type Details
      GET
    • Get Integration-Specific Credit Usage
      GET
    • Get Integration Credit Usage Report
      GET
  1. Tables

Delete all rows from a table

DELETE
https://api.clay.com/v3/tables/{TABLE_ID}/records
Deletes all rows from a specific view in the table. This endpoint removes all records that are visible in the specified view, based on the view's filters.
Input: Provide the viewId to delete all rows from that view. You can optionally specify omitDeletingRecordIds to exclude certain records from deletion.
Note: This action is permanent and cannot be undone. All rows matching the view's filters will be deleted. Use with caution.

Request

Path Params

Header Params

Body Params application/x-www-form-urlencodedRequired

Responses

🟢200Success
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request DELETE 'https://api.clay.com/v3/tables/<TABLE_ID>/records' \
--header 'Cookie: {YOUR_CLAY_COOKIES}' \
--data-urlencode '%7B%22deleteAll%22%3Atrue%2C%22viewId%22%3A%22%7BVIEW_ID%7D%22%2C%22omitDeletingRecordIds%22%3A%5B%5D%2C%22recordIds%22%3A%5B%5D%2C%22viewFiltersHash%22%3A%22%7BFILTERS_HASH%7D%22%7D='
Response Response Example
{}
Modified at 2026-01-16 07:50:01
Previous
Delete a row from the table
Next
Run an enrichment column
Built with