O'Reilly logo

Drupal 7 Webform Cookbook by Douglas Vernon Denny

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Clearing the database

Normally, after a form has been thoroughly tested, we will have several submissions in our database that we need to get rid of. While we could delete these one at a time, a more efficient route is to merely clear the database of all submissions pertaining to a form. We may, of course, also follow this route if we wish to re-use a form.

How to do it...

When we are certain that we no longer require the data we may clean out the database.

  1. After clicking on the Results tab, click on the Clear sub-tab.
  2. In a similar fashion to delete submissions, Webform presents us with a confirmation screen where we can either confirm that we wish to continue with the bulk delete action by clicking on the Clear button or we can return to safety ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required