Cmdlets for FTP

Build 23.0.8839

Remove-FTP Cmdlet

Parameters   Output Objects  

FTP データを削除します。

Syntax

Remove-FTP [parameters]

Remarks

Remove-FTP コマンドレットを使って、SQL DELETE ステートメントに似た構文を用いてFTP データを削除できます。

$conn = Connect-FTP -RemoteHost 'MyFTPServer'
Remove-FTP -Connection $conn -Table "Notes" -Id "1"
Where パラメータは主キーを指定するためにも使われます。
Remove-FTP -Connection $conn -Table "exTablePowershell;" -Where "Id = 1"
主キーは、パイプライン上でコマンドレットに渡すこともできます。
Select-FTP -Connection $conn -Table Notes -Where "FilePath = '/documents/doc.txt'" | Remove-FTP

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