edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing

ExFTPConnectionDeleteMultipleFiles(String, String, Boolean) Method

Delete all the files in the supplied remote directory (and optionally its subdirectories) that match the supplied wildcard.

Definition

Namespace: EnterpriseDT.Net.Ftp
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.7.0.0
C#
public virtual void DeleteMultipleFiles(
	string remoteDirectory,
	string wildcard,
	bool includeSubDirs
)

Parameters

remoteDirectory  String
name of remote directory
wildcard  String
wildcard for specifying files (? for single characters and * for multiple characters)
includeSubDirs  Boolean
true if recursing through subdirectories

Remarks

No directories are deleted. Only files matching the wildcard are deleted.

See Also