Hi API Team,
I am using dropbox folders temporarily to upload videos to youtube. I need to clean/delete files from Dropbox files after I upload them to youtube since I don't need them anymore and to free up space in Dropbox.
1. Do you have a setting where we can set time to delete files? ex: every day, every Monday at 23:59
2. Do you have a cron job/automation/bot/software that will clean folders for example at 23:59 every day?
I am able to delete individual files and folders as follows (API Doc):
curl -X POST https://api.dropboxapi.com/2/files/permanently_delete \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"path\": \"/Homework/math/Prime_Numbers.txt\"}"
How to delete all files in a folder with out deleting the folder? Something like *.* for all files:
{
"path": "/uploads/*.*"
} I could not interpret the path pattern - path String(pattern="(/(.|[\r\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)")
Can you please guide me to delete all files in a folder ?
Thanks!