How to delete a specific stream from a socket?

Maybe like this?

socket
|> stream(:mystream, [], reset: true)

But I don’t really understand what You are doing with your pop_in…