Skip to main content

Delete records

Deletes one or an array of records by identifiers

Function DeletePosts(Val Token, Val Base, Val Table, Val Records) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringToken
Base--baseStringDatabase identifier
Table--tableStringTable identifier
Records--recordsString, Array of StringIdentifier or array of record identifiers

Returns: Map Of KeyAndValue - serialized JSON response from Airtable


1C:Enterprise/OneScript code example
    Token  = "patNn4BXW66Yx3pdj.5b93c53cab554a8387de02d...";
Base = "appcKJWExq22nSSCZ";
Table = "tblfJOUYCIlw7QvTw";
Record = "recn1OzIdcpiUFq4h";

Result = OPI_Airtable.DeletePosts(Token, Base, Table, Record);
    oint airtable DeletePosts \
--token "***" \
--base "apprMMfGWJFZxWYR5" \
--table "tblsfDOZwPMmsQIg8" \
--records "recxo0irNziDDuHMK"
Result
{
"records": [
{
"deleted": true,
"id": "recMPMkPT6RzcSyqt"
}
]
}