> ## 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.

# DELETE (/serviceconfigs/{scid}/hoppers/{hoppername}/tickets/{ticketid})

> DELETE (/serviceconfigs/{scid}/hoppers/{hoppername}/tickets/{ticketid})

# DELETE (/serviceconfigs/{scid}/hoppers/{hoppername}/tickets/{ticketid})

移除匹配票证。

> **重要:**\
> 此方法拟用于合约 103 或更高版本,并且要求每次请求都包含 X-Xbl-Contract-Version: 103 或更高版本的标头元素。

* [备注](#ID4ET)
* [URI 参数](#ID4E2)
* [授权](#ID4EGB)
* [HTTP 状态代码](#ID4EOC)
* [请求正文](#ID4EXC)
* [响应正文](#ID4ECD)

## 备注

此 HTTP/REST 方法从服务配置 ID (SCID) 层级的指定 hopper 中删除指定的票证 ID。此方法可以由 **Microsoft.Xbox.Services.Matchmaking.MatchmakingService.DeleteMatchTicketAsync** 进行包装。

## URI 参数

| 参数 | 类型 | 说明 |
| - | - | - |
| scid | GUID | 会话的服务配置标识符 (SCID)。 |
| name | string | hopper 的名称。 |
| ticketId | GUID | 票证 ID。 |

## 授权

| 类型 | 是否必需 | 说明 | 缺失时的响应 |
| - | - | - | - |
| XUID(用户 ID) | 是 | 发出请求的用户必须是该票证所引用票证会话的成员。 | 403 |
| 权限和设备类型 | 是 | 当用户的 deviceType 设置为 console 时,只有其声明中包含 multiplayer 权限的用户才能调用匹配服务。 | 403 |

## HTTP 状态代码

服务返回适用于 MPSD 的 HTTP 状态代码。

## 请求正文

此请求的正文中不发送任何对象。

## 响应正文

响应正文中不发送任何对象。

## 另请参阅

##### 父主题

[/serviceconfigs/{scid}/hoppers/{hoppername}/tickets/{ticketid}](https://devdocs.xbox.com/zh-CN/reference/live/rest/uri/matchtickets/uri-scidhoppernameticketid)


## Related topics

- [XblMatchmakingDeleteMatchTicketAsync](https://devdocs.xbox.com/reference/live/xsapi-c/matchmaking_c/functions/xblmatchmakingdeletematchticketasync.md)
- [XblMatchmakingGetMatchTicketDetailsAsync](https://devdocs.xbox.com/reference/live/xsapi-c/matchmaking_c/functions/xblmatchmakinggetmatchticketdetailsasync.md)
