use os.path.exists, shutil.rmtree to clean shared dir
update documentation