---
title: "注文項目を削除する(レガシー)"
slug: "delete-an-order-item--legacy-"
abstract: "Sitecore CDP Orderアイテム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-item-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/orderItems/<orderItemRef>

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

属性

種類

概要

例

orderItemRef

ストリング

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

d680c9be-4c07-4731-857e-9602034b15f2

curl -X DELETE '<baseURL>/v2/orderItems/d680c9be-4c07-4731-857e-9602034b15f2' \\
-u '<username>:<password>' \\
-H 'Accept: application/json'