Outlook command-line switches let you reset specific parts of the program without reinstalling or deleting your entire profile. The /cleanviews switch restores folder views to their default layout, while /resetnavpane clears the navigation pane and resets the folder list. These two switches address different problems, and using the wrong one can waste time or remove needed customizations. This article explains what each switch does, when to run it, and how to avoid common mistakes.
Key Takeaways: Choosing Between /cleanviews and /resetnavpane
- /cleanviews switch: Resets all folder views (columns, sorting, grouping) to the original Outlook defaults without affecting the navigation pane.
- /resetnavpane switch: Clears the navigation pane cache and restores the default folder list, useful when folders are missing or the pane is unresponsive.
- Run from Run dialog or shortcut: Both switches require Outlook to be closed first and are entered as “outlook.exe /cleanviews” or “outlook.exe /resetnavpane” in the Run dialog (Win+R).
Understanding Outlook Command-Line Switches: What /cleanviews and /resetnavpane Actually Do
Outlook stores view settings in a hidden file named views.dat inside your profile folder. The /cleanviews switch deletes this file on startup, forcing Outlook to regenerate all folder views from the built-in defaults. This includes column widths, sorting order, grouping rules, conditional formatting, and any custom filters you applied to mail, calendar, contacts, or tasks folders. The switch does not remove shared calendar permissions, rules, signatures, or account settings — it only touches view definitions.
The /resetnavpane switch targets a different storage file: profile.xml (or Outlook.xml in newer versions) located in the Navigation Pane settings folder. This file holds the list of folders shown in the left pane, their order, and which module is selected (Mail, Calendar, People, etc.). When you run /resetnavpane, Outlook deletes this file and rebuilds the navigation pane from the mailbox structure on the server. The switch is useful when folders disappear, the pane freezes, or Outlook shows an empty folder list.
How These Switches Affect Your Profile
Neither switch removes email messages, contacts, calendar items, or tasks. They only reset configuration files that control the user interface. However, both switches require a restart of Outlook, and any unsaved settings will be lost. Running /cleanviews undoes every custom view you have ever set — including sorting by date descending, grouping by conversation, or filtering out flagged items. Running /resetnavpane removes any pinned folders, custom navigation pane order, and collapsed groups you set up.
When to Use /cleanviews: Fixing Corrupted Folder Views
Use the /cleanviews switch when your folder views behave unexpectedly and no other fix works. Typical symptoms include columns that refuse to stay sorted, missing fields, garbled column headers, or a view that resets itself every time you switch folders. This corruption often happens after a Windows update, a failed add-in, or manually editing the views.dat file by accident.
- Close Outlook completely
Make sure no Outlook process is running in the background. Press Ctrl+Shift+Escape to open Task Manager and check that Outlook.exe is not listed under Processes. - Open the Run dialog
Press the Windows key + R on your keyboard. The Run dialog appears. - Enter the /cleanviews command
Type outlook.exe /cleanviews in the Open field. Do not add any extra spaces or quotation marks unless your Outlook path contains spaces — in that case, use full quotes: “C:\Program Files\Microsoft Office\root\Office16\OUTLOOK.EXE” /cleanviews. - Press Enter or click OK
Outlook starts with a blank views.dat file. All folder views will be reset to the default layout for your version of Outlook. - Verify the fix
Open a few different folders in Mail, Calendar, and Tasks. Check that columns, sorting, and grouping match the default Outlook arrangement.
When to Use /resetnavpane: Fixing the Navigation Pane
Use the /resetnavpane switch when the navigation pane on the left side of Outlook is broken. Symptoms include a blank pane, missing folders, the pane not responding to clicks, or folders that appear in the wrong order. This problem can occur after a profile repair, a change in mailbox permissions, or when the profile.xml file becomes corrupted.
- Close Outlook completely
As with the /cleanviews switch, ensure no Outlook process is running. Use Task Manager to verify. - Open the Run dialog
Press Windows key + R. - Enter the /resetnavpane command
Type outlook.exe /resetnavpane in the Open field. If your Office installation is in a non-default location, include the full path in quotes. - Press Enter or click OK
Outlook starts and rebuilds the navigation pane from the server. The default module is Mail, and all folders appear in alphabetical order. - Reconfigure your navigation pane
After the reset, you may need to pin your most-used folders again, collapse or expand groups, and switch to your preferred module (Calendar or People).
Common Mistakes When Using Outlook Switches
Running the wrong switch and losing custom views
Users sometimes run /resetnavpane thinking it will fix view corruption, but it does not affect views.dat. If your columns are scrambled, /cleanviews is the correct switch. Running /resetnavpane first wastes time and may remove navigation pane customizations unnecessarily.
Forgetting to close Outlook before running the switch
If Outlook is running when you type the command in the Run dialog, a second instance may start, or the switch may not apply at all. Always verify that Outlook.exe is not in Task Manager before running either switch.
Using /cleanviews when a single folder view is broken
The /cleanviews switch resets every folder in your profile. If only one folder has a corrupted view, try resetting that folder manually first: right-click the folder, choose Properties, go to the View tab, and click Reset. This avoids losing custom views in other folders.
Running switches from the Start menu search
Typing outlook.exe /cleanviews into the Start menu search box does not work reliably. Always use the Run dialog (Win+R) or a command prompt window to ensure the switch is parsed correctly.
Outlook /cleanviews vs /resetnavpane: Key Differences
| Item | /cleanviews | /resetnavpane |
|---|---|---|
| Target file | views.dat | profile.xml or Outlook.xml |
| What it resets | Folder view settings: columns, sorting, grouping, filters | Navigation pane: folder list, module selection, pinned folders |
| Primary symptom | Corrupted columns, incorrect sorting, missing fields | Missing folders, blank pane, frozen navigation |
| Data loss risk | Loses all custom folder views | Loses pinned folders and navigation pane order |
| Run command | outlook.exe /cleanviews | outlook.exe /resetnavpane |
Both switches are safe to run multiple times. They do not delete email, contacts, calendar items, or tasks. They only reset configuration files that Outlook rebuilds automatically on the next startup.
If you are unsure which switch to use, start with /resetnavpane if the problem is in the left pane, and use /cleanviews if the problem is inside a folder’s content area. Running one switch does not affect the other, so you can run both in sequence if needed — close Outlook, run one switch, let Outlook open, close it again, and then run the second switch.
For advanced users, you can create a desktop shortcut that runs either switch. Right-click the desktop, select New > Shortcut, and enter outlook.exe /cleanviews or outlook.exe /resetnavpane as the location. Name the shortcut something like “Outlook Reset Views” and use it whenever the problem returns.