Cmdlets for SFTP

Build 24.0.9060

Remove-SFTP Cmdlet

Parameters   Output Objects  

Deletes SFTP data.

Syntax

Remove-SFTP [parameters]

Remarks

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

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

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