@classmethod
def remove(cls, spec, allow_global=False, **kwargs):
    """Find and remove documents matching `spec`.

        Additional keywords are passed to
        :meth:`pymongo.collection.Collection.remove`.

        """
    if not allow_global:
        cls.check_query_sharding(spec)
    return cls.collection.remove(spec, **kwargs)
