User Manual

10.04.2024

MANUAL

Developer Function: Server Script: items.BulkDelete

The Japanese version of the manual is the latest.
Please also check.
## 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|Yes|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」". It cannot be used in "「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)
code VS Codeで開発作業をもっとスマートに

スクリプト開発の効率を高めたい方に、Code Assistをご用意しています。

Code Assistの詳細はこちら →
account_tree 複雑な構成も、すっきり視覚化

サイト構成やデータのつながりを可視化し、把握しやすくします。

Site Visualizerの詳細はこちら →
TOP