Hi there,

I was wondering if it is possible to automatically delete old webform submissions.
I have been looking for it, but didn't find anything.

Dylan

Comments

quicksketch’s picture

There is no built-in functionality for this, though it could be done rather easily through a custom module that uses hook_cron() to delete entries after a certain date.

dylankiss’s picture

Hmm, I am not really familiar with hooks. I have basic php knowledge, but not enough for developing custom modules.

quicksketch’s picture

Version: 6.x-3.5 » 6.x-3.8
Category: support » feature

Moving this to a feature request.

rankinstudio’s picture

+1 would really appreciate this feature.

vip_sa’s picture

Is there an option to delete bulk webform submissions? I have a few webforms on my site and a lot of submissions per webform. Now if I want to delete any of the submissions I have to actually go and delete each one separately. Views bulk operations does not allow you to delete webform submission because it does not give you any options. In other words views bulk operations does not work with webforms. The above features plus this one would really be great fr this great module I can't do without.

Anonymous’s picture

1 UP 4 these. It is a really powerful module but these are essential features.

http://drupal.org/project/webform_rules

sonicthoughts’s picture

YES!

sonicthoughts’s picture

@asennus1 were you able to get rules to do this - couldn't figure it out since there is only a hook on create, update, etc.

Anonymous’s picture

@sonicthoughts no, I came to the same conclusion. But maybe webform_rules module could be upgraded to support this?

The problem is that it is: minimally maintained and development status is: Maintenance fixes only :(

Any ideas? As the end of year is closing I face a tedious and long task as our users doesn't seem to bother to delete these.

Anonymous’s picture

I'm glad to tell that there is now a 7.x module for this :).

https://drupal.org/project/webform_clear

Please share the news. I looked at the usage statistics of the module and it's clear that this module is not well known.

Maybe the project page could be updated: https://drupal.org/project/webform or at least "the related projects"-list? https://drupal.org/node/1526208

RoloDMonkey’s picture

I have started a custom module for this. I still have to write the cron hook that does the actual deletion. If there is demand for this, feel free to nag me send me some encouragement :)

https://drupal.org/sandbox/rolodmonkey/2172727

quicksketch’s picture

Issue summary: View changes

Thanks guys, glad to see this implemented as an add-on module. I'm not sure this functionality is appropriate for the main module, but hopefully as others have seen, it's not difficult to implement as an outside module.

DanChadwick’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.