I am trying to work on how to delete all files in a folder in an Azure file vault.
CloudFileDirectory.ListFilesAndDirectories() returns IEnumerable of IListFileItem . But that doesnβt help much because it does not have a file name property or the like.
This is what I have so far:
var folder = root.GetDirectoryReference("myfolder"); if (folder.Exists()) { foreach (var file in folder.ListFilesAndDirectories()) {
How can I change IListFileItem to CloudFile so that I can call myfile.Delete() ?
BG100 source share