Skip to main content

Bulk Delete Records

Delete one or more Records in a specified Table.

delete_record(tableId: ID, ids: ID[], options?: DeleteRecordsOptions): Promise<SimpleRecord[]>;
Parameter NameTypeDescription
tableIdstringThe Id of the Table to Delete the record in.
idsarray of stringsAn array of record Ids to delete.
optionsobjectRecord Delete options.
Example Script - Delete Record

<!--bulk_delete_records(appId: ID, recordIds: ID[]): Promise<void>;-->

<script>
window.SmartSuite.bulk_delete_records('67458368f64e11aadd7a7513', ["67612a673a8cba5225a8198a"]);
</script>

Response

200 Ok
[
{
"first_created": {
"by": "63a1f65723aaf6bcb564b1f1",
"on": "2024-12-19T20:58:29.656000Z"
},
"last_updated": {
"by": "63a1f65723aaf6bcb564b1f1",
"on": "2024-12-19T20:58:29.657000Z"
},
"application_id": "67458368f64e11aadd7a7513",
"autonumber": 4,
"ranking": {
"default": "aaaaaachem"
},
"deleted_by": "63a1f65723aaf6bcb564b1f1",
"id": "67458368f64e11aadd7a7513",
"application_slug": "swp6a6sm",
"deleted_date": {
"date": "2024-12-20T21:51:50.375000Z",
"include_time": true
},
"title": "",
"comments_count": 0,
"description": {
"data": {
"type": "doc",
"content": []
},
"html": "",
"preview": ""
},
"assigned_to": [],
"status": {
"value": "",
"updated_on": null
},
"due_date": {
"from_date": {
"date": null,
"include_time": false
},
"to_date": {
"date": null,
"include_time": false
},
"status_is_completed": false,
"status_updated_on": null
},
"priority": "",
"followed_by": [],
"sab60f5c5b": "",
"s048e67ec8": "",
"s8f119717f": []
},
...
]