remove document from code