code: def delete_many(cls, documents):
          
  
          # Ensure all documents have been converted to frames
          frames = cls._ensure_frames(documents)
  
          all_count = len(documents)
          assert len([f for f in frames if '_id' in f._document]) == all_count, \
                  "Can't delete documents without `_id`s"
  
          # Send delete signal
          signal('delete').send(cls, frames=frames)
  
          # Prepare the documents to be deleted
          ids = [f._id for f in frames]
  
          # Delete the documents
          cls.get_collection().delete_many({'_id': {'$in': ids}})
  
          # Send deleted signal
          signal('deleted').send(cls, frames=frames)
docs: Delete multiple documents