delete_entry, file mode, output