PowerShell Snippets: Delete File
Views (0)
This post is part of the series on PowerShell Snippets.
The following PowerShell command will check if the named file exists in the current directory and, if so, delete it (replace the highlighted section with the name of the file to be deleted):
$FileName = "azrcrv-smtp.zip"
if (Test-Path $FileName) {
Remove-Item $FileName
}
Read original post PowerShell Snippets: Delete File at azurecurve|Ramblings of an IT Professional
This was originally posted here.

Like
Report
*This post is locked for comments