public async Task <DataLakeFileClient> DeleteFile(Models.File File) { var DirectoryClient = FileSystemClient.GetDirectoryClient(File.UserId); DataLakeFileClient FileClient = null; foreach (Category Category in File.Categories) { FileClient = DirectoryClient.GetFileClient(Category.CategoryName + "/" + File.FileName); await FileClient.DeleteAsync(false); } return(FileClient); }