Cmdlets for FTP

Build 24.0.8963

Remove-FTP Cmdlet

Parameters   Output Objects  

Deletes FTP data.

Syntax

Remove-FTP [parameters]

Remarks

The Remove-FTP cmdlet allows you to use a syntax similar to SQL DELETE statements to delete FTP data.

$conn = Connect-FTP -RemoteHost 'MyFTPServer'
Remove-FTP -Connection $conn -Table "Notes" -Id "1"
The Where parameter can also be used to specify the primary key:
Remove-FTP -Connection $conn -Table "exTablePowershell;" -Where "Id = 1"
The primary key can also be passed to the cmdlet along the pipeline:
Select-FTP -Connection $conn -Table Notes -Where "FilePath = '/documents/doc.txt'" | Remove-FTP

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.8963