# Unregister(Guid, UnityAction<MessageEventArgs>)

> Deregisters a registered callback.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Networking.PlayerConnection](/engine/6000.3/script-reference/unityeditor/networking/playerconnection.md)
* **Assembly:** UnityEditor

```csharp
public void Unregister(Guid messageId, UnityAction<MessageEventArgs> callback)
```

### Parameters

**** (\[Guid]\(https\://learn.microsoft.com/dotnet/api/system.guid)): Message ID associated with the callback that you wish to deregister.**** (\[UnityAction\<MessageEventArgs>]\(/engine/6000.3/script-reference/unityengine/events/unityaction)): The Action callback you wish to deregister.

### Remarks

Only deregisters the callback that is matched with the given message ID and given Action.
