Clearing a list


I am new to ui Path.
Can anyone help me to clear a Mail message list?
After retrieving mails using the get outlook activity i want to clear off the mail message list.How to do clear it?


Hi @jewel

I am actually not sure if that is the best solution, but this Assign activity will clear your variable by assigning it a new, empty instance:
yourList = new List(Of System.Net.Mail.MailMessage)



Use This Workflow
Main.xaml (5.9 KB)

And Please Update