Community
Deleting a file from a submission using the API
about 1 month ago by abrezel
I have need to programmatically delete a file from a form submission. The file must be completely deleted from Formstack's systems.
What is the accepted method for performing this task?
Currently, I have found some success with a PUT
request to the /submission/:id
endpoint. Sending an empty string payload to field_x
results in the file disappearing from the submission admin UI. The download link to that file also breaks.
However, due to the lack of documentation on the matter, I am not sure if my solution is actually deleting the file from Formstack's systems.
Any advice on the matter would be greatly appreciated.