cache_delete
Permanently delete one or more keys from a cache instance to remove stale entries. Use when explicit removal is needed instead of TTL-based expiration.
Instructions
Permanently delete one or more keys from a running cache instance (uses Redis DEL). This operation is destructive and irreversible — deleted keys cannot be recovered. Deleting a non-existent key is safe and returns 0 for that key (no error). Returns the count of keys that were actually deleted (existing keys only). Use this to explicitly remove stale entries; prefer cache_set with a short TTL for auto-expiring data. Do NOT use this to clear an entire instance — use the dashboard or delete_instance for that.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance_id | Yes | UUID of the cache instance to delete keys from (get from list_instances) | |
| keys | Yes | One or more cache keys to delete. Accepts exact keys only (no glob patterns — use cache_keys to list first). |