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.

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!