Need to delete files from FTP server using cmdlet command. Below is the function I tried which downloads the files but struggling with the delete part.
Remove-FTPFile -Client $Client -RemotePath "$($FtpFolder)$($FtpFile)"
Any help is appreciated!
CodePudding user response:
Answer is :
Remove-FTPFile -Client $Client -RemotePath "$($FtpFolder)/$($FtpFile)"