def remove_doc(id, lang, docid, str, repo = None, txn = None): terms = p.preprocess(lang, str) ctx.invidx[id][lang].remove_doc(docid, terms, repo = repo, txn = txn)