Dart.Ftp Namespace > Ftp Class : DeleteDirectory Method |
Public Function DeleteDirectory( _ ByVal rootDirectory As String _ ) As List(Of Response)
Dim instance As Ftp Dim rootDirectory As String Dim value As List(Of Response) value = instance.DeleteDirectory(rootDirectory)
public List<Response> DeleteDirectory( string rootDirectory )
public: List<Response^>^ DeleteDirectory( String^ rootDirectory )
private void deleteFiles() { //Delete a list of files (in this case, the txt files). ftp1.Delete(ftp1.ListDirectoryTree("MyTextFiles", "*.txt", false)); //Delete a specific file. ftp1.Delete("MyTextFiles/test.dat"); //Delete the directory, even when it is not empty. ftp1.DeleteDirectory("MyTextFiles"); }
Private Sub deleteFiles() 'Delete a list of files (in this case, the txt files). ftp1.Delete(ftp1.ListDirectoryTree("MyTextFiles", "*.txt", False)) 'Delete a specific file. ftp1.Delete("MyTextFiles/test.dat") 'Delete the directory, even when it is not empty. ftp1.DeleteDirectory("MyTextFiles") End Sub