Prerequisites
- The installation has finished. A service whose status is Installation requested or Deployment in progress cannot be deleted yet. A service whose installation or deployment needs attention can be.
- Your role allows it:
The built-in
owner, admin and operator roles hold all of them. Without them the service’s page shows no Delete service section, and the deletion page says Your role cannot delete this service. See Roles and access.
What is removed and what is kept
The volumes behind the deleted claims are erased where the StorageClass reclaims them with reclaim policy
Delete, the usual default.
Ankra never put the service’s credentials into your application namespaces, so deleting the service removes nothing there. A Secret you copied into an application’s namespace yourself, as in Wire it into an application, stays until you delete it. Applications still configured with the service’s address lose their connection.
Delete the service
1
Open the service
In the new Ankra portal, open Managed services, then My services, and choose the service. The Delete service section is at the bottom of its page. Choose Delete service.
2
Acknowledge what the deletion does
Under Environments that lose this service, tick each application environment the service serves. Each one stops using the service; the application itself is not changed.Then tick I understand that deleting
<service> deletes its data and generated credentials, and that no export is made first.Choose Review deletion. Reviewing prepares a plan. It deletes nothing.3
Review the plan
The plan is what the platform resolved for this service, and what the deletion will do:
- Service, Cluster and Namespace deleted.
- Removed from the cluster: the stack, and each member with the namespace it deploys into.
- Environments that lose it: each application environment the service serves.
- Kept: shared stacks the service needed, such as the CloudNativePG operator.
- What happens to the data: the platform’s statement of what is deleted, including whether volumes on a
RetainStorageClass stay behind.
4
Type the name and confirm
Type the service’s name exactly in Type
<service> to confirm, then choose Delete service. Confirm within the review window, 10 minutes after the plan was prepared; the page shows when it ends. When the window passes, Review again prepares a fresh plan for the same acknowledgements.Follow the deletion
After you confirm, the service’s page shows Deletion confirmed. and the deletion’s progress, one step at a time:- Removing the service’s stack
- Waiting for the cluster to remove the stack: Ankra waits up to an hour for the cluster’s agent to report every member removed.
- Deleting the service’s namespace and its data: Ankra first checks that no other Ankra-managed workload deploys into the namespace, then deletes it and waits up to 30 minutes to see it gone.
Verify
When the namespace is gone, the page becomes a Service deleted receipt with the status Deleted: the stack was removed, the namespace was deleted and seen gone from the cluster, and the name was released. The receipt lists what is kept, and My services shows the service as Retired. To check the cluster yourself (see Kubeconfig for access):NotFound. On a StorageClass with reclaim policy Retain, the service’s volumes are left with status Released. Delete them once you no longer need their data:
When a deletion stops short
Only Deleted removes the service. Any other outcome leaves the service and its name in place, says why under What happened, and the Delete service section offers Review the deletion again.A service’s stack is deleted through the service
The service owns its stack. Deleting the stack directly - in the portal, through the API, withankra cluster stacks delete or by asking the AI Assistant - is refused with:
Removing a service’s stack from the cluster’s GitOps repository is not refused yet. It removes the service’s deployment while the service and its name stay in My services. Delete the service from its page instead.
Delete through the API
The API calls a deletion a retirement. It takes the same two steps, with an API token whose holder has the permissions above:- Read the service with Get a managed service instance for its
generationand theidof each of itsconsumers. - Prepare a managed-service retirement review with
expected_generation,disconnect_consumer_ids(every consumer id, each once) andacknowledge_data_loss: true. The answer carries the plan, itsdigestand itsexpires_at, 10 minutes later. Nothing changes on the cluster. - Confirm a managed-service retirement by its digest with that
digest. Confirming again with the same digest returns the same receipt, never a second deletion. - Follow
retirementon the service, or Get a managed-service retirement: itsphasewhile it runs, then itsoutcomeandreason. Only the outcomeretireddeleted the service.
Troubleshooting
Next steps
Managed services
How services run, their health and readiness, and their current limits.
Set up a managed service
Set up a service again, under the same name or a new one.