Deleting file field in table doesn't delete files in Amazon

Hi, I had a file field in my table that takes alot of space (I have 2MB - 3MB png files in like 130 rows). I deleted the field. Then deleted it permanently in the trash. However, when I do an export of the table, I have the csv file without the deleted field (which is good), but all the files of the field are present in the attachments folder. This made me understand that the files still exist in the Amazon folder, and in teable it says that I’m still taking a large space even if I calibrate.

The file field was deleted permanently yesterday.
Maybe I should have delete ‘the files’ stored in the field before deleting the field?

Can someones help delete these files in amazon so it doesn’t count against the file storage limit?

Thanks for reporting this. It’s logged as T8166, and we’ll post updates in this topic as it moves along.

1 Like

We’ve started work on T8166. We’ll post here when it’s live.

1 Like

Thank you!

T8166 is live on Teable Cloud. Please check it within 7 days, and reply here if anything is still off.

Self-hosted: pull the latest image to get it.

Thanks alot! It works!
So what do you suggest in the future when deleting a file field, should we delete the files first, then delete the field? Or now it’s fixed and we can directly delete the field and the files saved in the field will automatically be deleted in the amazon server?

Thanks !

Great to hear it’s working now!

You don’t need to delete the files first. You can delete the field directly.

When you delete a field, it moves to the table’s trash first. While it’s there you can still restore it
with all its files, so those files keep counting toward your storage. Once you permanently delete it from
the trash (as you did), its files no longer count toward your storage limit, and they won’t show up in the
attachments folder of later exports.

The same goes for other ways of removing files. Removing a file from a cell frees its space right away.
Deleted records, tables and bases free theirs once you permanently delete them from the trash.

Usage isn’t always updated right away. If the number hasn’t gone down, click Calibrate next to attachment
usage on your space’s billing page to recount it now (you can do this once every 30 minutes).

Amazing work, thanks alot guys!

T8166 is done, so we’re closing this topic. If it comes back, start a new report and link to this one.

1 Like