correctly removes the doc folder

fixes #8