clear the directory structure