Stop the proxy and delete the dashboard deployment
# kill proxy
pkill -f 'kubectl proxy --port=8080'
# delete dashboard
kubectl delete -f https://raw.githubusercontent.com/kubernetes/dashboard/${DASHBOARD_VERSION}/aio/deploy/recommended.yaml
unset DASHBOARD_VERSION