import { Airtable } from "https://deno.land/x/airtable/mod.ts";
type Airtable = {
apiKey: string;
};
type AirtableTable = {
baseId: string;
tableName: string;
};
export async function main(
atCon: Airtable,
atTable: AirtableTable,
recordId: string,
) {
const airtable = new Airtable({ ...atCon, ...atTable });
const deleteSingleRecord = await airtable.delete(recordId);
return deleteSingleRecord;
}
Submitted by hugo697 421 days ago
import { Airtable } from "https://deno.land/x/airtable/mod.ts";
type Airtable = {
apiKey: string;
};
type AirtableTable = {
baseId: string;
tableName: string;
};
export async function main(
at_con: Airtable,
at_table: AirtableTable,
recordId: string,
) {
const airtable = new Airtable({ ...at_con, ...at_table });
const deleteSingleRecord = await airtable.delete(recordId);
return deleteSingleRecord;
}
Submitted by hugo697 421 days ago