Home > OS >  Delete FTP server files after downloading
Delete FTP server files after downloading

Time:06-12

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)"
  • Related