Forum Discussion

SteffenSteffen's avatar
SteffenSteffen
Qrew Trainee
6 years ago

Use API to delete entire file attachment history

This question is a follow-up to: https://community.quickbase.com/quickbase/topics/delete-file-attachment-with-api-editrecord. It concerns the use of API_EditRecord to delete attached files from
records. Inspired by the final answer to the aforementioned question, I have been sending out requests with these parameters:

<rid>[rid]</rid>
<field fid="18" filename="delete"></field>
<field fid="24" filename="delete"></field>

This works perfectly well, except for not actually deleting any files. What I get are empty fields whose revision histories now have "(deleted by user)" at the top, with all previous revisions still available and taking up space.

Is there really no way of actually deleting file attachments through the API? While I would prefer a nuke-all option of removing the entire history at once, I'm also open to doing it revision by revision. I looked at the API reference and couldn't find anything, so I'm nervous that this is just not possible, but I thought I'd ask just to be safe.


7 Replies