I maxed out the free tier on Atlas and need to reduce the number of documents in my collection by half or more.
Is there a straight forward way to delete N number of documents. I don't need to query or search for specific documents, i just need to mass delete. I have approximately 100k documents in my collection and would like to get it down to around 10k.
I tried db.Articles.deleteMany({10000})
and db.Articles.remove(10000)
but i know the syntax is wrong
Below is how my documents are stored:
_id:
author:
title:
description:
url:
urlToImage:
publishedAt:
content:
summarization:
source_id:
Any help would be greatly appreciated