Skip to content

Instantly share code, notes, and snippets.

@omidkrad
Last active August 24, 2021 21:24
Embed
What would you like to do?
Delete IISExpress sites using PowerShell
Set-Alias appcmd "$env:ProgramFiles\IIS Express\appcmd.exe"
appcmd list site /text:SITE.NAME | % { appcmd delete site $_ }
# or remove IISExpress directory
Remove-Item -Recurse $env:USERPROFILE\Documents\IISExpress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment