Key-Value Storage (Delete) Block

Delete a value from key-value storage

The Key-Value Storage (Delete) block enables users to remove a value associated with a specific key from the key-value storage. This functionality is essential for managing and cleaning up stored data within Scout workflows, ensuring that outdated or unnecessary information is efficiently removed.

Configuration (Required)

Key
stringRequired

The key to be deleted. This field supports Jinja templating, allowing for dynamic key construction based on the workflow state.

See Workflow Logic & State > State Management for details on using dynamic variables in this block.

Outputs

The block returns the status and message indicating the result of the delete operation. This output confirms whether the deletion was successful and provides relevant feedback.

Usage Context

Use this block when you need to delete specific entries from key-value storage, such as removing user-specific data or clearing logs.

Best Practices

  • Ensure the key template correctly resolves to the intended key in the storage: This helps in accurately targeting the data you wish to delete.
  • Utilize Jinja templating to dynamically construct keys based on workflow state: This allows for flexible and context-aware key management.
  • Validate that the key exists before attempting deletion to avoid unnecessary operations: This ensures efficient use of resources and prevents errors.
Built with