One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
One_of_us
4 years agoNew member | Level 2
Archive Folders older than 1 week
Is it possible to archive folders and content older than say 1 week ? Using python.
I have a working folder /Dropbox/Work/Images and I want to archive stuff that is older than a week from this specific folder /Images/ ? And doing this automatically ?
Thanks !
- Greg-DB
Dropbox Staff
Dropbox doesn't offer a way to perform operations automatically based on the age of an item, but you can use the API to write code to perform whatever operations you want, whenever desired.
For example, with the Dropbox Python SDK, you can list files/folders using files_list_folder and files_list_folder_continue, and you can move items using files_move_v2 or delete items using files_delete_v2.I recommend reading the File Access Guide for information on interacting with files via the Dropbox API.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,945 PostsLatest Activity: 2 hours ago
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!