changed default delete_file argument