{{tag>Index Action Action_List Business_Object Process Business_Rule}} ====== CLEAN ====== The ''CLEAN'' action is similar to the ''DELETE'' action in that it deletes instances of the specified //[[glossary:business_object|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. ===== Syntax ===== The syntax of the ''CLEAN'' action is similar to that of the ''FIND'' action. ===== Example ===== 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" The ''CLEAN'' action is not supported for business object groups. You cannot use references in the condition of this action either.