Purpose: When triggered, will delete an item (such as a File, Folder, or Form).
Example 1:
In the example below, the event will be triggered and a file will be deleted when an its status is changed to 'Cancelled'.
Example 2:
The Delete Item action can also be used to delete other item types in Blue Relay, such as forms and folders. You can use expressions to customize the context variable #item. Then, the Delete Item action will delete whatever #item is set to.
In this example, an answer (Distrodatasetid) from a form is saved, and the form is deleted.
Step 1: Create a context variable for the item
Step 2: Create another context variable for the value you wish to keep
Step 3: Set the form as the item
Step 4: Delete the item
Step 5: Set the item back to the original item.