Move clear_file.sh outside