complete viewdocs and delete docs