Hello,
Kindly please help on Auto-delete the whole Databases after a certain amount of time in mongodb compass.
Thank you
Hello,
Kindly please help on Auto-delete the whole Databases after a certain amount of time in mongodb compass.
Thank you
Compass is just a ui to mongodb. If you want to say delete a database you’ll need to schedule something to run. Either on a server somewhere or if on Atlas should be able to use a scheduled trigger.
Whats your use case for this?
If what you’re looking for is to auto-delete the contents of a collection, you can Expire Data from Collections by Setting TTL.
Hello,
Created time-series collections to auto-delete.
Or
If you have custom condition after delete collection then use BATCH scripts to match your conditions and delete operation
Or
Set cron jobs to run on specific time and delete data