> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# MatchmakingTicket.Cancel

> MatchmakingTicket.Cancel

# MatchmakingTicket.Cancel method

Cancels the ticket.

```csharp theme={null}
public void Cancel()
```

## Remarks

This method queues an asynchronous operation to cancel this matchmaking ticket. On success, a [`OnMatchmakingTicketCompleted`](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PlayFabMultiplayer/OnMatchmakingTicketCompleted) will be provided indicating that the ticket has been canceled.

This method does not guarantee the ticket will be canceled. The ticket may complete before the cancellation can be processed, or the cancellation request may fail due to networking or service errors. If the cancellation attempt fails but is retrievable, the library will continue to retry the cancellation. Otherwise, a [`OnMatchmakingTicketCompleted`](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PlayFabMultiplayer/OnMatchmakingTicketCompleted) will be provided that indicates the ticket failed.

## See Also

* class [MatchmakingTicket](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/MatchmakingTicket/overview)
* namespace [PlayFab.Multiplayer](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference)


## Related topics

- [MatchmakingTicket.Status](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/MatchmakingTicket/Status.md)
- [MatchmakingTicket.TicketId](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/MatchmakingTicket/TicketId.md)
- [MatchmakingTicket.GetMatchDetails](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/MatchmakingTicket/GetMatchDetails.md)
- [PFMatchmakingTicketCancel](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmatchmakingticketcancel.md)
- [Matchmaking quickstart](/services/playfab/multiplayer/matchmaking/quickstart.md)
