Deleting submissions

The final set of functionality required by the CRUD design pattern is the facility to delete (or destroy) data.

Getting ready

As with editing, there are three routes to deleting submitted data. One method is to click on the Delete tab while in the View mode. Another route is to go back to the submission's Overview page and to click on the Delete link in the OPERATIONS column for the submission. The third route we can follow is to click on the corresponding submission ID (which launches the View mode for the submission) while in the Table view mode and then click on the Delete tab.

How to do it...

Let's get ourselves ready to delete one of our test submissions by following one of the preceding routes to get into the Delete mode on a particular submission:

  1. When we click on Delete, we are immediately confronted with a confirmation screen. If we are certain that we wish to permanently remove the submission from the database, then we may click on the Delete button, otherwise we can gracefully back out of the action by clicking on Cancel.
How to do it...

How it works...

In Webform, as is standard across all Drupal modules, any delete action is permanent. There is no undo button to bring back what we have discarded.

We need to be absolutely sure, before we irretrievably lose data, that we have selected the correct submission for deletion.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset