Delete an instance of purchasedProducts

delete

/services/rest/connect/latest/purchasedProducts/{id}

Request

Path Parameters

Response

Default Response

Body ()
Root Schema : No content
Type: null
Title: No content
No content returned on delete

Examples

Use DELETE with the following syntax to delete a purchased product:

https://your_site_interface/services/rest/connect/version/purchasedProducts/product_id

Request URI example

https://mysite.example.com/services/rest/connect/v1.4/purchasedProducts/5

Response example

The status 200 OK is returned. Then running this ROQL tabular query on purchased product records:

https://mysite.example.com/services/rest/connect/v1.4/
queryResults?query=select id from purchasedProducts

returns the following:

{
  "items": [
    {
      "tableName": "purchasedProducts",
      "count": 5,
      "columnNames": [
        "id"
      ],
      "rows": [
        [
          "1"
        ],
        [
          "2"
        ],
        [
          "3"
        ],
        [
          "4"
        ],
        [
          "6"
        ]
      ]
    }
  ],
  "links": [
    {
      "rel": "self",
      "href": "https://mysite.example.com/services/rest/connect/v1.4/queryResults?
       query=select%20id%20from%20purchasedProducts"
    },
    {
      "rel": "canonical",
      "href": "https://mysite.example.com/services/rest/connect/v1.4/queryResults"
    },
    {
      "rel": "describedby",
      "href": "https://mysite.example.com/services/rest/connect/v1.4/metadata-catalog/queryResults",
      "mediaType": "application/schema+json"
    }
  ]
}

Note:

Purchased product 5 no longer exists.