Remove unnecessary temp files.