0

I am following the example of the Beanie ODM docs on how to delete a single document: https://beanie-odm.dev/tutorial/relations/#delete

passing link_rule=DeleteRules.DELETE_LINKS to the delete method. For a single document that works, but when i try that with multiple documents like this:

await House.find().delete(link_rule=DeleteRules.DELETE_LINKS)

I get the following error:

TypeError: Collection.delete_many() got an unexpected keyword argument 'link_rule'

Question: How can i delete many documents in Beanie ODM once after filtering with find?

Thanks for your help!

0 Answers0