ZREM
Syntax
Section titled “Syntax”ZREM key member [member ...]
Removes the specified members by key from the sorted set. Non existing members are ignored.
Returns the number of members removed from the sorted set.
Examples
Section titled “Examples”localhost:7379> ZADD users 10 alice 20 bob 30 charlieOK 3localhost:7379> ZRANGE users 0 60 BYSCOREOK1) 10, alice2) 20, bob3) 30, charlielocalhost:7379> ZREM users alice bobOK 2localhost:7379> ZRANGE users 0 60 BYSCOREOK1) 30, charlie