Skip to main content
Question

Auto delete files

  • May 22, 2025
  • 1 reply
  • 89 views

Forum|alt.badge.img
  • Is there an option to create a folder with a retention policy (e.g. Any file in the folder will auto-delete after 3 days)
  • Is there a way to set an auto-delete / expire on a file through the API?

1 reply

Forum|alt.badge.img

Yes, you can create and assign retention policies via the API:

 

https://developer.box.com/reference/post-retention-policies/

https://developer.box.com/reference/post-retention-policy-assignments/

 

This feature is only available to enterprises that have purchased Governance.