Skip to content

How to manage overflown airtable records? #66

@hossain-khan

Description

@hossain-khan

To delete multiple records using Airtable's API, you can send a DELETE request to the appropriate table's endpoint. The request allows you to delete multiple records at once by specifying their recordId values in a query string.

Here's the format for the API call:

API Endpoint:

DELETE https://api.airtable.com/v0/{baseId}/{tableName}

Query Parameters:

  • records[]: Array of record IDs you want to delete.

Example Request:

curl -X DELETE "https://api.airtable.com/v0/{baseId}/{tableName}?records[]=rec12345&records[]=rec67890" \
-H "Authorization: Bearer YOUR_API_KEY"

In this example, replace the following:

  • {baseId} with your Airtable base ID.
  • {tableName} with the name of the table where the records are located.
  • rec12345 and rec67890 with the actual record IDs you want to delete.
  • YOUR_API_KEY with your Airtable API key.

JSON Response Example:

If the operation is successful, you will receive a response like this:

{
  "records": [
    {
      "id": "rec12345",
      "deleted": true
    },
    {
      "id": "rec67890",
      "deleted": true
    }
  ]
}

This request will delete the specified records from the Airtable base.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions