Redis Advanced icon

Redis Advanced

Get, send and update data in Redis with enhanced operations

Set Remove

AI-generated

Summary

Remove one or more specified members from a Redis set.

Inputs

  • Set (required) — Name of the Redis set from which members will be removed.
  • Members (required) — Space-separated list of members to remove from the set.

Output shape

a list of JSON objects, each containing the set name, number of members removed, and the members attempted to be removed.

Each output item corresponds to an input item and includes keys: 'set', 'removed' (number of members actually removed), and 'members' (array of specified member strings). Errors are thrown unless 'Continue On Fail' is enabled, in which case error details are included in the output.

Examples

Example 1: Remove multiple members from a set named 'userRoles'

Set parameter: 'userRoles'; Members parameter: 'admin guest'

Discussion