Deleting a file

Top  Previous  Next

You can delete a file using the Sftp.DeleteFile method.

 

Example

 

[C#]

 

// delete remote file testdata.txt

sftp.DeleteFile("testdata.txt");

 

[VB]

 

' delete remote file testdata.txt

sftp.DeleteFile("testdata.txt");