Deleting files in folder when uploading new versions

I’m uploading audio versions to a specific folder and using a Watch folder to do it. Ideally I’d like to upload the new versions and have the old one’s either be archived or deleted automatically. Is there some way to do that. I’m just trying to prevent client confusion.

2 Likes

You could probably setup an automation to do this, but it would be a bit complex as you’d have to listen for all new asset.created events via a webhook, then fetch all the assets in the parent directory, and then parse that list and figure out what should be removed.

We don’t support archiving of individual assets, but you could move them into a different folder called say “archived” via the API if you wanted to!

Hey Goombot,

Check out silosync.io. There’s an option to choose ‘Create Timestamp Subfolder for Each Upload.’ This will create a folder with a timestamp for each upload, and then place the new files into that folder. This helps keep everything organized and tidy.

Let us know if you have any success,
-S

1 Like