Skip to content

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.

List Valkey instancesΒΆ

To list all Valkey instances belonging to your team:

  1. Open NAIS Console in your browser and select your team.
  2. Select the Valkey tab
  3. Find the name of the Valkey instance you want to delete

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:

kubectl delete valkey <VALKEY-NAME>

Remove references from application manifestsΒΆ

Ensure that all references to the Valkey instance are removed from your application manifests:

app.yaml
spec:
-  valkey:
-    - instance: <VALKEY-INSTANCE-NAME>
-      access: <ACCESS-LEVEL>