How do i disconnect event of a RemoteFunction?

So, i want to save the event of a RemoteFunction in a variable but i don’t know how…

Functions.VoteGameMode.OnServerInvoke = VoteReceived

I wanna save it for disconnect it later
That’s it, thank you all!

I think you just set it to nil

Functions.VoteGameMode.OnServerInvoke = nil