def clear_temp_catalog():
backup_dir = tempfile.mkdtemp()<EOL>for file in temp_catalog_files():<EOL><INDENT>move_file(file,backup_dir)<EOL><DEDENT>return backup_dir<EOL>
Remove any catalog from the temp dir.