Is there a renderscripts method to get and clear cookies from Microsoft Edge before opening a published RDWeb client?

I came across this article that describes how to get and clear cookie contents of Microsoft Internet Explorer each time before opening a published RDWeb client app :

https://learn.microsoft.com/en-us/troubleshoot/windows-server/remote/no-connected-icon-in-notification-area

Is it possible to use the Renderscripts.js java file from RDWeb server side to get and clear cookie contents of Microsoft Edge deployed in the remote user’s computer where the published RDWeb app client is opened?