Session.RemoveFiles Method

Removes one or more remote files.

Syntax

C#
public RemovalOperationResult RemoveFiles(string path)
VB.NET
Public Function RemoveFiles(ByVal path As String) As RemovalOperationResult

Parameters

Name Description
string path Full path to remote directory followed by slash and wildcard to select files or subdirectories to remove.

Return Value

RemovalOperationResult. See also Capturing results of operations.

Advertisements:

Exceptions

Exception Condition
InvalidOperationException Session is not opened.
SessionLocalException Error communicating with winscp.com.
See the exception documentation for details.
TimeoutException Timeout waiting for winscp.com to respond.

Examples

Real-Life Example

 
  library_session_removefiles.txt · Last modified: by martin
 

Search Documentation

This page

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

Associations

Site design by Black Gate