Web Deploy: (401) Unauthorized

If you are getting the 401 Unauthorized error from Visual Studio when trying to use Web Deploy then you need to add something to your regedit.

Solr delete/clear index

How to delete/clear the solr index.