Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
quicksketchThere 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.
Comment #2
dylankiss CreditAttribution: dylankiss commentedHmm, I am not really familiar with hooks. I have basic php knowledge, but not enough for developing custom modules.
Comment #3
quicksketchMoving this to a feature request.
Comment #4
rankinstudio CreditAttribution: rankinstudio commented+1 would really appreciate this feature.
Comment #5
vip_sa CreditAttribution: vip_sa commentedIs 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.
Comment #6
Anonymous (not verified) CreditAttribution: Anonymous commented1 UP 4 these. It is a really powerful module but these are essential features.
http://drupal.org/project/webform_rules
Comment #7
sonicthoughts CreditAttribution: sonicthoughts commentedYES!
Comment #8
sonicthoughts CreditAttribution: sonicthoughts commented@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.
Comment #9
Anonymous (not verified) CreditAttribution: Anonymous commented@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.
Comment #10
Anonymous (not verified) CreditAttribution: Anonymous commentedI'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
Comment #11
RoloDMonkey CreditAttribution: RoloDMonkey commentedI 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 mesend me some encouragement :)https://drupal.org/sandbox/rolodmonkey/2172727
Comment #12
quicksketchThanks 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.
Comment #13
DanChadwick CreditAttribution: DanChadwick commented