def delete(self, key):
        """Delete a document by id."""
        assert key, "A key must be supplied for delete operations"
        self._collection.remove(spec_or_id={'_id': key})
        LOG.debug("DB REMOVE: %s.%s", self.collection_name, key)
def delete ( self , key ) : assert key , "A key must be supplied for delete operations" self . _collection . remove ( spec_or_id = { '_id' : key } ) LOG . debug ( "DB REMOVE: %s.%s" , self . collection_name , key )
Delete a document by id.