Skip to main content

DeleteKey

Redis Plugin – Delete Key

Summary (SEO Meta Description):
The Redis plugin in WeHub allows workflows to delete keys from a Redis store.
Use this action to remove cached data or clean up expired workflow state.


Overview

The Delete Key action removes a specific key from Redis.
It is typically used for cache invalidation, session cleanup, or ensuring workflows don’t retain outdated data.


⚙️ Action: Delete Key

  • Description: Deletes a specified key from Redis.
  • Use Case: Remove stale or unnecessary workflow data from cache.

Configuration Options:

FieldTypeDescription
LabelStringCustom name for the action.
Select ConnectionConnectionChoose or create a Redis connection.
KeyStringThe Redis key to delete. If the key doesn’t exist, no action is taken.

💡 Example Use Cases

  • Healthcare: Remove sensitive patient session data after workflow completion.
  • E-commerce: Invalidate a shopping cart key once checkout is completed.
  • Microservices: Clean up temporary cache entries after processing an event.

FAQ

Q: What happens if the key does not exist?
A: No error is thrown; Redis simply ignores the delete request.

Q: Can I delete multiple keys at once?
A: This action deletes one key at a time. For multiple keys, use multiple Delete Key actions or a Redis script.

Q: Does deleting a key free memory immediately?
A: Yes. Once deleted, Redis frees the space allocated to the key.


Keywords: WeHub Redis Plugin, Delete Key, Redis Cache Invalidation, Workflow Cleanup, Key Removal