Delete a file in powershell if it exists

From MyWiki
Jump to: navigation, search
If (Test-Path $strFileName){
	Remove-Item $strFileName
}