Delete records
Deletes one or an array of records by identifiers
- Parameters
- Advanced call ?
Function DeleteRecords(Val Token, Val Base, Val Table, Val Records) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Token | --token | String | ✔ | Token |
| Base | --base | String | ✔ | Database identifier |
| Table | --table | String | ✔ | Table identifier |
| Records | --records | String, Array of String | ✔ | Identifier or array of record identifiers |
Returns
Map Of KeyAndValue - serialized JSON response from Airtable
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete HTTP structure with fields code, body, and headers |
| retries | Number of HTTP request send attempts on 5** status codes or internal client errors |
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
1C:Enterprise/OneScript code example
Token = "patNn4BXW66Yx3pdj.5b93c53cab554a8387de02d...";
Base = "appJiRrCJhRhnaVAo";
Table = "tblFGmvh2eldM8MuJ";
Record = "recuJsvpt9DG2SuEk";
Result = OPI_Airtable.DeleteRecords(Token, Base, Table, Record);
- Bash
- CMD/Bat
oint airtable DeleteRecords \
--token "***" \
--base "app86bmgLaVuoXh4T" \
--table "tblGKn3wdfOQGs7G3" \
--records "recrZOTQElXIhFTWo"
oint airtable DeleteRecords ^
--token "***" ^
--base "app86bmgLaVuoXh4T" ^
--table "tblGKn3wdfOQGs7G3" ^
--records "recrZOTQElXIhFTWo"
Result
{
"records": [
{
"deleted": true,
"id": "recrZOTQElXIhFTWo"
}
]
}