TTL which applies to archived files as well
Currently there is no way of managing an online archive besides nuking the entire collection. This means that the collection can only grow, so costs will continue to climb.
The TTL index can already be used to automatically delete documents from your database. If this could be expanded to also delete files which have been archived, there is an easy and built-in way of maintaining an archive in size.
AdminBenjamin (Admin, MongoDB) commented
Thanks for the suggestion Michael! We are actually planning on adding support for something similar in the coming quarters so please keep an eye on this idea, it will show progress updates as we proceed.
Agreed. Without any ability to automatically manage the size of the archive this feature is not viable for us.