Documentation describes how to delete all cached objects using the IIS Manager's Application Request Routing Cache applet (details here: http://learn.iis.net/page.aspx/576/delete-cached-objects/). How might this be done from the command line or powershell script?
In my case I do have a local disk cache and deleting the files in that folder doesn't cause the files to be re-calculated. What else is required?
The following C# code sample is a simple console program that can delete all contents of the cache, or delete a specific URL that you wish to clear from the cache.
In order for this to compile, you will need to reference the Microsoft.Web.Administration DLL which I found in the GAC (though I also believe it is part of the Windows SDK as well).
Hope this helps!
The best option I can come up with is to call iisreset.exe from an elevated command prompt, and then delete the contents of the cache folder, for example:
It's a little ugly--surely there must be something more elegant.