I\'m using the below code to delete one documents and return deleted document:
book.collection.find_and_modify({"author_id": {"$nin": omit}},