#Lookup folder path #Delete all signatures or a named signature #Various language versions of Outlook has different folder name to store signatures in. #Since this path is hardcoded it should not pose a risk of deleting all files on C: if %appdata% expands to invalid path. $UK_Folder = [System.Environment]::ExpandEnvironmentVariables("%appdata%\Microsoft\Signaturer") $DK_Folder = [System.Environment]::ExpandEnvironmentVariables("%appdata%\Microsoft\Signatures") # If only a specific signature is to be deleted put: "SignatureName.*" # "*.*" will delete all signatures #$NameOfSignatureToDelete = "Abby.*" $NameOfSignatureToDelete = "*.*" #Test to see if folder exists" if (Test-Path -Path $UK_Folder) { "UK Path exists! Proceeding to delete content" $Path = Join-Path -Path $UK_Folder -ChildPath $NameOfSignatureToDelete Remove-Item $Path } elseif (Test-Path -Path $DK_Folder) { "DK Path exists! Proceeding to delete content" $Path = Join-Path -Path $DK_Folder -ChildPath $NameOfSignatureToDelete Remove-Item $Path } else { "Path doesn't exist." }