clean temporary repository and submodules