Avatar

Delete attached file in Attachment field via API

Nattaya Hanrattanasakul

Dear all,

I'm trying to use API to delete attached file in Attachment field from specified record in Kintone app but fail.

Objective : To free Kintone space automatically.

> already tried to assign Attachment file ="" , attachment is disappear but usage space in Kintone is not changed. 

If there is any idea, please kindly provide to me.

Thank you in advance.

Tian

Follow 2 followers
0

3 comments

Avatar
Yuzo Arai 0 votes

Hello Nattaya,

Is it possible for you to share the script that you got so far?
Then others, including me, could check to see what might be the problem.

Thanks

0
Comment actions Permalink
Avatar
Yuzo Arai 1 vote

Also, just to mention, if the change history of the app is enabled, attachments remain in the history even after you delete the attachments from the record. To delete attachments from the history, you must disable the feature to track the change history of the app.

When the feature to change the history of records is disabled, the histories to date will be deleted.
The history deletion may take some time, and thus the disk usage may not be reduced immediately.

Reducing the Disk Usage
https://get.kintone.help/k/en/trouble_shooting/disk_storage/reduce.html#disk_storage_reduce_30

I hope this helps.

1
Comment actions Permalink
Avatar
Nattaya Hanrattanasakul 2 votes

Hello Arai-san

Many thank for your help. It's work after I disabled history tracking!

2
Comment actions Permalink