Write-Host "Beginning Processing--`n"
## Global Variables ##
$strUriFile = "ftp://some_server_name_or_URI/FtpTestDoc1.txt"
$strUsername = "some_username"
$strPassword = "username_password"
$strOutput=""
Write-Host "strUriFile: $strUriFile"
Write-Host "strUsername: $strUsername"
Write-Host "strPassword: $strPassword"
Write-Host "`nActivating--`n"
$credentials = New-Object System.Net.NetworkCredential -arg $strFtpUsername, $strFtpPassword
$req = [System.Net.FtpWebRequest]::create("$rqurdstrUriFile")
$req.Method = [System.Net.WebRequestMethods+Ftp]::DeleteFile
$req.Credentials = $credentials
$response = $req.GetResponse()
$response
$strOutput= "[" + [string]$response.ResponseUri + "_" + [string]$response.StatusCode + "];" #StatusDescription
$strOutput = $strOutput.trim()
$strOutput
Write-Host "`nEnd Processing--`n"