We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 47257
    • 9 Posts
    Hi there,
    I have been making a form for a client. The submissions are saved using the the FormItSaveForm hook. When the client need the submission data, they go to the Extra/Formit menu and export a csv-file. They can remove/delete the submissions one by one.

    I would like to make it possible to bulk delete these submission, but where do I start? Anyone who could point me in the right direction? An option for bulk deleting uploaded files in the mediabrowser would be nice too.

    Best regards Gitte
      • 17301
      • 932 Posts
      You could bulk delete it directly from the database I'd imagine but can't recall off hand where they are stored.

      Regarding deleting media you could create a snippet to delete folders and files are X date and run it on a cron job to continually prune old assets. Likewise you could create a snippet just for a one time purpose of deleting specific folders. Just be careful and backup first wink
        ■ email: [email protected] | ■ website: https://alienbuild.uk

        The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
        • 47257
        • 9 Posts
        Well, deleting from the database would be an option for me, but not for my client, I was looking for a more simple way, making it possible for the client to do it by themselves. You know something with checkboxes and a deletebutton within MODX