Capping analytics data storage
What methods are available to enable me to manage my MongoDB analytics storage?
Note
Time based caps (TTL indexes) are incompatible with already configured size based caps.
Note
If you are using DocumentDB, capped collections are not supported. See here for more details.