SREM

Removes a specified member from a set.

Sets · Example verified

Syntax covered here

SREM key member

Removing the existing member is counted as one deletion.

Tested example & replies

Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.

# connection: default
> SADD team a
1
# connection: default
> SREM team a
1