How do I reset the the microk8s config?

I want to reset the microk8s config of my node. Basically what I want is that all people that ever had access to the config will not be able to connect to the server with it anymore and that a new config is created. How do I renew this?

This is how i will do.

  1. first generate a new token like this.
admin_token=$(openssl rand -base64 32 | ${SNAP}/usr/bin/base64)
  1. Get the value of the admin_token

  2. replace the token in the row with admin In the file /var/snap/microk8s/current/credentials/known_tokens.csv

  3. Dont forget to also replace the token in the file
    /var/snap/microk8s/current/credentials/client.config

  4. Restart microk8s.

Don’t forget to backup any file you are going to modify.