CLEAN

The CLEAN action is similar to the DELETE action in that it deletes instances of the specified business object. Unlike the DELETE action the CLEAN action does not invoke execution of rules – records are deleted in the database directly. CLEAN action is much more efficient than the DELETE action, however, you should use this action with care because it does not check the integrity of the data – if there are instances of the business objects left that refer to the deleted instances the data will be inconsistent. It is your responsibility to make sure that the data remains consistent after deletion.

The syntax of the CLEAN action is similar to that of the FIND action.

CLEAN ALL Account 

The above action deletes all records of the Account object in the database.

CLEAN Account WHERE Account.Name='Smith' 

The above action deletes all accounts with the name “Smith”

note

The CLEAN action is not supported for business object groups. You cannot use references in the condition of this action either.
  • Last modified: 2023/05/09 01:28