Delete Valkey¶
This page guides you through the steps required to delete a Valkey instance.
Prerequisites¶
Steps¶
List Valkey instances¶
To list all Valkey instances belonging to your team:
Through the Nais Console¶
- Open Nais Console in your browser and select your team.
- Select the
Valkey
tab - Find the name of the Valkey instance you want to delete
Using Kubectl¶
Disable termination protection¶
Before your can delete a specific Valkey instance, you must first disable termination protection.
To disable termination protection, run the following command:
kubectl patch valkey <VALKEY-NAME> \
--type json \
-p='[{"op": "replace", "path": "/spec/terminationProtection", "value": false}]'
Remove references from application manifests¶
If the instance was created implicitly by adding it to your application manifest, removing it from the manifest will trigger deletion of the instance. If you have explicitly created the instance, you must also explicitly delete it after removing it from the application manifest.
Ensure that all references to the Valkey instance are removed from your application manifests:
Delete Valkey instance¶
To delete the Valkey instance, run the following command: