Allow to delete file uploads without deleting submissions through API

  • Profile Image
    4funbooks
    Asked on September 16, 2015 at 11:05 AM
    Is it possible to do this through Jotform API using Javascript for many submissions in one go?
  • Profile Image
    Charlie
    Answered on September 16, 2015 at 11:26 AM

    Hi,

    I made a test submission and tried editing the submissions with file uploads on them, unfortunately, editing the submission does not remove the file uploads that were previously submitted, it will remain in the servers. You need to delete the actual submission for the files to be removed in our servers and to free up the upload space.

    I would advise that you download the submissions and the file uploads to your local storage, after that you can proceed on deleting the submissions, this is because when you delete a submission it is permanent and irreversible. 

    Regarding the API, as mentioned, editing the submission won't delete the file uploads, however you can still use API to delete the submissions, you can refer to this guide: http://api.jotform.com/docs/#delete-submission-id. But it would be more convenient to delete the submissions in the Submissions page instead.

    I hope that helps.

  • Profile Image
    4funbooks
    Answered on September 16, 2015 at 01:06 PM

    Thanks for your answer!

    This is bad. Jotform itself could be good working database. We could access all submissions data anytime through API or even simple excel reports. Deleting submissions makes this impossible, and forces us to create our local database. Even 1 Tb on gold, wouldn'd solve this, because it will fill up quite quickly for us.

    We will be glad to see solution for this in future!

  • Profile Image
    Charlie
    Answered on September 16, 2015 at 02:28 PM

    Thank you for sharing your insights on this. I have escalated this to our developers as a feature request. I have noted that users should be allowed to delete the file uploads through API.

    It might be also a good addition if this option can be done in the submissions page.

    We will update you on this thread when we hear any news.

  • Profile Image
    posef770
    Answered on June 28, 2017 at 05:10 PM

    Hi Charlie,

    Has this feature (be able to delete all file stored on JotForm servers while retaining submissions) been implemented yet?

     

  • Profile Image
    Kevin_G
    Answered on June 28, 2017 at 06:58 PM

    @posef770, 

    In order to assist you better I have moved your question to another thread, it can be found here: https://www.jotform.com/answers/1186675