remove the document part