Delete mails from gmail

I am trying delete all mails from Gmail of a job search website,
I am attaching bot pics and the error pls assist

@Ankur_kaushik - What is your For Each type?

Foreach is working well
I used earlier same
But here error is of server type from ms

I using which is in control