---
title: "注文連絡先を削除する(レガシー)"
slug: "delete-an-order-contact--legacy-"
abstract: "Sitecore CDP Order Contact REST APIを使って注文の連絡先を削除する方法を説明しています。"
---
# 注文連絡先を削除する(レガシー)

> !重要[このREST APIの新しいバージョン(v2.1)が利用可能です](https://api-docs.sitecore.com/cdp/order-rest-api)。このREST APIが初めてなら、新しいバージョンを使いましょう。あるいは、すでに古いバージョンを使っているなら、[v2とv2.1の違いについて調](https://doc.sitecore.com/cdp/ja/developers/api/rest-apis/legacy-rest-apis/order-contact-rest-api-v2--legacy-/differences-between-v2-and-v2-1-of-the-order-rest-apis.html "Differences between v2 and v2.1 of the Order REST APIs") べてアップグレードしてみてください。

DELETE /v2/orderContacts/<orderContactRef>

注文からゲストを削除します。空の204 No Content応答は削除が成功したことを意味します。

属性

種類

概要

例

orderContactRef

ストリング

命令書の連絡先の参照。  
  
注文連絡先の参照がわからない場合は、まず注文の連絡先参照 [を取得し](https://doc.sitecore.com/cdp/ja/developers/api/rest-apis/legacy-rest-apis/order-contact-rest-api-v2--legacy-/retrieve-order-contact-references--legacy-.html) てください。

f8d1f0d5-365d-46b7-becf-d041e93a5705

curl -X DELETE '<baseURL>/v2/orderContacts/f8d1f0d5-365d-46b7-becf-d041e93a5705' \\
-u '<username>:<password>' \\
-H 'Accept: application/json'