/// <summary> /// Deletes remote directory. /// </summary> /// <param name="client">The Kudu client.</param> /// <param name="remotePath">The remote target path.</param> /// <example> /// <code> /// #addin nuget:?package=Cake.Kudu.Client /// /// string baseUri = EnvironmentVariable("KUDU_CLIENT_BASEURI"), /// userName = EnvironmentVariable("KUDU_CLIENT_USERNAME"), /// password = EnvironmentVariable("KUDU_CLIENT_PASSWORD"); /// /// IKuduClient kuduClient = KuduClient( /// baseUri, /// userName, /// password); /// /// DirectoryPath remoteDirectoryPath = "/site/wwwroot/hello/"; /// /// kuduClient.VFSDeleteDirectory(remoteDirectoryPath); /// </code> /// </example> // ReSharper disable once InconsistentNaming public static void VFSDeleteDirectory( this IKuduClient client, DirectoryPath remotePath) { client.VFSDelete(remotePath); }
/// <summary> /// Deletes remote file. /// </summary> /// <param name="client">The Kudu client.</param> /// <param name="remotePath">The remote target path.</param> /// <example> /// <code> /// #addin nuget:?package=Cake.Kudu.Client /// /// string baseUri = EnvironmentVariable("KUDU_CLIENT_BASEURI"), /// userName = EnvironmentVariable("KUDU_CLIENT_USERNAME"), /// password = EnvironmentVariable("KUDU_CLIENT_PASSWORD"); /// /// IKuduClient kuduClient = KuduClient( /// baseUri, /// userName, /// password); /// /// FilePath remoteFilePath = "/site/wwwroot/hello.txt"; /// kuduClient.VFSDeleteFile(remoteFilePath); /// </code> /// </example> // ReSharper disable once InconsistentNaming public static void VFSDeleteFile( this IKuduClient client, FilePath remotePath) { client.VFSDelete(remotePath); }