Deletes multiple files that match the filter from the FTP server remote directory.

Namespace: Jscape.Ftp
Assembly: Jscape.Ftp (in Jscape.Ftp.dll) Version: 2.4.5.0

Syntax

C#
public virtual void MDelete(
	string regexp
)
Visual Basic
Public Overridable Sub MDelete ( _
	regexp As String _
)
Visual C++
public:
virtual void MDelete(
	String^ regexp
)

Parameters

regexp
Type: System..::..String
The regular expression filter.

Examples

The following example deletes all files in this regular expression: .*\.txt , from the remote directory to the local directory.
CopyC#
myFtp.MDownload(@".*\.txt");

Copy 
myFtp.MDownload(".*\.txt")

Exceptions

ExceptionCondition
Jscape.Ftp..::..FtpExceptionIf an I/O or FTP error occurs.

See Also