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 optionTypeDescription
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


Code example
  
Base = "apptm8Xqo7TwMaipQ";
Table = "tbl9G4jVoTJpxYwSY";

Records = New Array;
Records.Add("recjHNKNZBWLZkZ7A");
Records.Add("recGyJ0MlN1H3GMuN");

Response = OPI_Airtable.DeletePosts(Token, Base, Table, Record); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
CLI command example
    
oint airtable DeletePosts --token %token% --base "apptm8Xqo7TwMaipQ" --table "tbl9G4jVoTJpxYwSY" --records %records%

Result
{
"records": [
{
"deleted": true,
"id": "recjHNKNZBWLZkZ7A"
},
{
"deleted": true,
"id": "recGyJ0MlN1H3GMuN"
}
]
}