User Manual

10.04.2024

MANUAL

Developer Function: Server Script: items.BulkDelete

## Overview Delete all records from a specified site at once. You can specify selection conditions to narrow down the records to be deleted. ## Syntax ``` items.BulkDelete(siteId, view) ``` ## Parameters |Parameter|Type|Required|Description| |:----------|:----------|:---:|:---------------------------| |siteId|object|Yes|Specify the site ID of the target table. | |view|string|No|Specify the conditions for the records to be selected. | ## Return Value If the deletion is successful, true is returned; if not, false is returned. ## Usage Example The following example deletes records with a Status of 900 (completed) from the table with site ID 123. ##### JavaScript ``` let view = { "View": { "ColumnFilterHash": { "Status": "[\"900\"]" } } }; items.BulkDelete(123, JSON.stringify(view)); ``` ## Notes This is a method used in "[Server Script](/en/manual/table-management-server-script)". It cannot be used in "[Script](/en/manual/table-management-script)". ## Related Information ・[Manage Table: Server Script](/manual/table-management-server-script) ・[Execution Timing for Each Object](/manual/server-script-conditions) ・[Items Object](/manual/server-script-items)
TOP
このページをシェアする
記載された商品名、各製品名は各社の登録商標または商標です。 © Implem Inc.