SQL Server Management Studio – How to remove “Server name” items from history

  1. In the search box, type Command Prompt
  2. Navigate to the root directory  – Type cd\ then hit enter
  3. Type DEL /S SqlStudio.bin and hit enter. (This should find every instance of the file and delete it from the system).

Note: Multiple instances can exist if more than one version of SSMS is installed. If you want to delete individual instances of the file, then navigate to its folder and delete it manually via Windows Explorer. Just be aware that different Windows Operating systems store them in different paths.

For example, in Windows 10, SSMS 2012 is here:
C:\%UserProfile%\AppData\Roaming\Microsoft\SQL Server Management Studio\11.0

SSMS 2008 is here:
C:\%UserProfile%\AppData\Roaming\Microsoft\Microsoft SQL Server\100\Tools\Shell

Hope this helps!