Delete Product Objects

Delete products in Vlocity Product Console by specifying them in the request body.

  • 1DEL /v2/epc/products?ids={product-ID}
1-   ```nolang
2DEL /v2/epc/products/{product-ID}

Remote Method 

1deleteProduct2

REST Handler 

1APIProductRestHandler

Apex Remote Service 

1PCAppHandler

Package 

Communication (vlocity_cmt)

API Parameters and Response Format 

For API parameter names and descriptions, see the Swagger (OpenAPI) reference documentation for Industries EPC REST APIs.

Resource Information 

Response FormatJSON
Resource URL/services/apexrest/{namespace}/v2/epc/products?ids={product-ID}

Example Requests 

  • 1DELETE v2/epc/products?ids=01t3h000002uJVSAA2
1-   ```nolang
2DELETE v2/epc/products/01t3h000002uJVSAA2

Example Result 

1{
2    "epcResponse": {
3        "entities": [
4            {
5                "entity": {
6                    "attributes": {
7                        "type": "Product2",
8                        "url": "/services/data/v52.0/sobjects/Product2/01t3h000001h1mYAAQ"
9                    },
10                    "Id": "01t3h000001h1mYAAQ",
11                    "vlocity_cmt__GlobalGroupKey__c": "359f10d7-cd58-d516-4ef2-e40958e6a403"
12                }
13            }
14        ],
15        "overallResult": "success"
16    }
17}