Skip to main content

Delete Collection - Automated Workflow Event

The "Delete Collection" event allows you to delete data from a collection through an automated workflow.

Let's see how to create an event step by step to delete data from a collection through a data table.


Step 1: Create the Delete Collection Event Action

To create an event to delete data in a collection, go to the Events panel and click the Add Event button. You will be redirected to the events page. Here, add the Event Name and click the Create Event button.

Then, click on the add icon and go to Collection in the dropdown event action list and select Delete Data by clicking on it once.

The Delete Data dialogue box will open. Here, add the collection whose data you want to delete and click the Save button.

Also, add the Refresh Event event in the Delete Data event so that the data table automatically gets refreshed after deleting a data entry.

DrapCode Builder Deleting Collection Event

Step 2: Bind the Collection

Now, bind the collection, on which you have created the delete collection event (for example "Customers collection as shown in the example") to a data component. Also, adjust the field positions, if you want.

DrapCode Builder Deleting Collection Event

Step 3: Add the Delete Button

Now, add a delete button and bind the Delete Collection event to the Delete button as shown below:

DrapCode Builder Deleting Collection Event

Step 4: Publish or Preview the Page

Now, bind the same collection to the page on which the component exists and click on the preview or publish icon to see how the event works.

DrapCode Builder Deleting Collection Event