delete the temporary directories.