'Remove values from Redis list by matching strings?

I am pre-computing user's newsfeeds so whenever someone they follow uploads a post it is added to their newsfeed list in redis in the following formats.

KEY: ${<userId>}-newsfeed

LIST VALUES: {postId: "",userId: ""}

So when a post is added to a user's newsfeed I am storing an object containing the postId and userId for every post in chronological order.

When a user deletes a post I need to be able to remove it from many lists without having to parse every list into an array of objects, access each object to find which to remove based on matching the postId or userId...

Is there a way to remove values in a list in their stringified format by matching the postId or userId?

127.0.0.1:6379> lrange 6279adfdcd59ea6cad3521d2-newsfeed 0 -1
1) "{\"postId\":\"627d3ee8debe29110d807135\",\"userId\":\"6279adffcd59ea6cad3521f0\"}"


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source