helm uninstall removes the pod but leaves the Publisher record
in the Netskope tenant by default. The chart can optionally delete
it on pod termination via the preStop hook
(enrollment.api.cleanupOnDelete=true) — see
autoscaling
for when that’s safe. If you didn’t enable it, this is the manual
flow.
1. Uninstall the Helm release
1 | helm uninstall kubernetes-netskope-publisher -n npa-publisher |
2. Delete the Publisher record via API
Find the publisher ID:
1 | curl -s -H "Netskope-Api-Token: $TOKEN" \ |
Then delete:
1 | curl -X DELETE \ |
3. (StatefulSet members) clean up suffixed names
If you ran a StatefulSet with replicas 2, you’ll have:
1 | prod-eu-publisher-0 |
Repeat step 2 for each. The Netskope console Delete action works
just as well; the API is just scriptable.
What about associated Private Apps?
Deleting a Publisher record automatically detaches it from any Private
Apps it was assigned to. Apps with zero remaining Publishers become
unreachable to end users until you attach a replacement. To check
before deleting:
1 | curl -s -H "Netskope-Api-Token: $TOKEN" \ |