How to delete using vb script

how can i delete the browsing history and cokies of microsoft edge using vb script can someone please help

You can’t. If they allowed that, then any web site could clear your history and cookies without your permission.

Now, whichever URL you’re browsing can delete cookies for just that URL. For example, if you’re on then that page can delete cookies related to but not other sites.

actually i want to delete them means clean the history complete before the automation runs its not related to website

You can’t do that with VBScript. It would be a huge security hole. It would let any web site clear your cookies or history. Best you could do is code the clicks in the browser to clear everything.

Not sure why you need this, though. What do cookies and history have to do with the automation?