delete_record
Remove a specific record from an Airtable table by providing the base ID, table name, and record ID to delete unwanted data entries.
Instructions
Delete a record from a table
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base_id | Yes | ID of the base | |
| table_name | Yes | Name of the table | |
| record_id | Yes | ID of the record to delete |
Implementation Reference
- src/index.ts:563-578 (handler)The handler for the 'delete_record' tool. It extracts base_id, table_name, and record_id from arguments, makes a DELETE request to the Airtable API endpoint for that record, and returns the response data.case "delete_record": { const { base_id, table_name, record_id } = request.params.arguments as { base_id: string; table_name: string; record_id: string; }; const response = await this.axiosInstance.delete( `/${base_id}/${table_name}/${record_id}` ); return { content: [{ type: "text", text: JSON.stringify(response.data, null, 2), }], }; }
- src/index.ts:323-344 (registration)Registration of the 'delete_record' tool in the listTools response, including its name, description, and input schema.{ name: "delete_record", description: "Delete a record from a table", inputSchema: { type: "object", properties: { base_id: { type: "string", description: "ID of the base", }, table_name: { type: "string", description: "Name of the table", }, record_id: { type: "string", description: "ID of the record to delete", }, }, required: ["base_id", "table_name", "record_id"], }, },
- src/index.ts:326-344 (schema)Input schema definition for the 'delete_record' tool.inputSchema: { type: "object", properties: { base_id: { type: "string", description: "ID of the base", }, table_name: { type: "string", description: "Name of the table", }, record_id: { type: "string", description: "ID of the record to delete", }, }, required: ["base_id", "table_name", "record_id"], }, },