Delete Valkey¶
This page guides you through the steps required to delete a Valkey instance.
Prerequisites¶
Steps¶
Before you delete a Valkey instance, ensure that no applications are using it. If you delete a Valkey instance in use, the applications will lose access to the data stored in the instance. Deletion of a Valkey instance can only be done through the terminal.
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}]'
Delete Valkey instance¶
To delete the Valkey instance, run the following command:
Remove references from application manifests¶
Ensure that all references to the Valkey instance are removed from your application manifests: