bw_delete_adso_data_selective
Selectively deletes aDSO records by characteristic conditions, or simulates the deletion to count matches. Simulates by default; set simulate=false to delete.
Instructions
Selectively delete records from an aDSO by conditions on its characteristics, or simulate the deletion to count the matching records. Simulates by default; pass simulate=false to actually delete. Conditions are select-option rows per field; several rows on one field are combined with OR, rows on different fields with AND. BW decides by aDSO type which tables the deletion covers (for a standard aDSO the active table only, for other types also the inbound table); the change log is not touched, and the requests stay in the request management. To remove whole load requests, use bw_delete_request instead. Returns the record count summed over all affected tables, with the BW messages that name each table and its count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_name | No | Name of the background job (default: BW-generated). | |
| simulate | No | Only count the matching records, delete nothing (default true). | |
| adso_name | Yes | Technical name of the aDSO (e.g. "OBJECT_NAME"). | |
| conditions | Yes | At least one condition. Only key fields can be restricted when the aDSO has a key; an invalid field is answered with the list of allowed ones. | |
| force_deletion | No | Force the deletion where BW otherwise refuses it (default false). | |
| propagate_deletion | No | The cockpit option "Propagate deletion" (default false). BW offers it only for aDSOs that write a change log. |