Hi, I am trying to delete first 100 records at once. Is there a way I can use limit and sort with deleteMany?
Hi @Sankalp_Karakoti and welcome to the community!
I think you can in this case use the _id field to perform the requested operation.
From the documentation:
Regards
Hello @Sankalp_Karakoti, Welcome to the MongoDB community forum,
You need to refer to a similar question,
1 Like
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.