Megosztás a következőn keresztül:


FtpClientConnection.DeleteFiles Method

Deletes the specified files from the File Transfer Protocol (FTP) server.

Namespace:  Microsoft.SqlServer.Dts.Runtime
Assembly:  Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)

Syntax

'Declaration
Public Sub DeleteFiles ( _
    remoteFiles As String() _
)
'Usage
Dim instance As FtpClientConnection
Dim remoteFiles As String()

instance.DeleteFiles(remoteFiles)
public void DeleteFiles(
    string[] remoteFiles
)
public:
void DeleteFiles(
    array<String^>^ remoteFiles
)
member DeleteFiles : 
        remoteFiles:string[] -> unit 
public function DeleteFiles(
    remoteFiles : String[]
)

Parameters

  • remoteFiles
    Type: array<System.String[]
    The remote files to be deleted.

Remarks

Wild-card characters are allowed. For example, /MyFolder/MyFiles*.* will delete all files in the MyFolder directory that start with the characters MyFiles.