Your method is not the best method but it is correct,I found a trick to clear them all.
I enabled this option
“chrome: // settings / cookies -----> Clear cookies and site data when you quit Chrome”
And whenever a cookie problem occurs, the script closes and opens Chrome.
This method may be useful for others.
3 Likes