First, remove all team namespaces and corresponding cluster queues.
Then to uninstall the MLBatch controllers and reclaim the corresponding namespaces, do the following:
# Delete operators and CRDs
kubectl delete -k setup.k8s-v1.27/appwrapper
kubectl delete -k setup.k8s-v1.27/kueue
kubectl delete -k setup.k8s-v1.27/kuberay
kubectl delete -k setup.k8s-v1.27/training-operator
# Delete namespace
kubectl delete namespace mlbatch-system
# Delete clusterole
kubectl delete clusterrole mlbatch-edit
# Coscheduler uninstall
helm uninstall -n scheduler-plugins scheduler-plugins
kubectl delete namespace scheduler-plugins