I’m hoping for sort out why I’m not seeing what I’d expect in a capped collection. According to the docs:
You cannot delete documents from a capped collection. To remove all documents from a collection, use the drop() method to drop the collection and recreate the capped collection.
However, I am able to delete documents from my Capped Collection, from what it seems?
Could you please let me know which version of MongoDB are you using? In the meantime, could you try this syntax to create a capped collection and try to remove an inserted document?
Hi @Justin_Jenkins, sorry for the delay. I have indeed reproduced and scaled it internally. I want to inform you that MongoDB > 5.0 removed the restriction on delete operations in the apply operations command.
However, we don’t seem to have added this to the documentation yet. I’ve filed an internal ticket to update the documentation to reflect this to avoid confusion.
Please let me know if you have any additional questions or concerns regarding the above details.