Logout user API

I’m using grafana HTTP API to build a front-end application on grafana.
User authentication is with the basic Auth model (default grafana authentication). I need the logout API, which cause grafana_session cookie expire.

I can not remove the grafana_session cookie from my scripts, because the httpOnly flag is on.

Could you please help me to handle the user logout?