I don't know if libobs provides a better way for that, but I made a script for windows, that just opens up your obs service data and clears the stream key from the json file.
But unfortunately to get this to work you need to run the python script yourself.