remove uncompleted document.