Delete products in Vlocity Product Console by specifying them in the request body.
-
DEL /v2/epc/products?ids={product-ID}
- ```nolang
DEL /v2/epc/products/{product-ID}
Remote Method
deleteProduct2
::include{src="../../shared/section_a928218bc856553066f3327382143bf4.md"} ::include{src="../../shared/section_e19c74036499bf2a717d7fc5a0852bcd.md"} ::include{src="../../shared/section_0fcf481610065fd34ff442609bf2bba9.md"} ::include{src="../../shared/section_8dbb11b5b7cb6e771157050052d6eeed.md"}
Resource Information
| Response Format | JSON |
|---|---|
| Resource URL | /services/apexrest/{namespace}/v2/epc/products?ids={product-ID} |
Example Requests
-
DELETE v2/epc/products?ids=01t3h000002uJVSAA2
- ```nolang
DELETE v2/epc/products/01t3h000002uJVSAA2
Example Result
{
"epcResponse": {
"entities": [
{
"entity": {
"attributes": {
"type": "Product2",
"url": "/services/data/v52.0/sobjects/Product2/01t3h000001h1mYAAQ"
},
"Id": "01t3h000001h1mYAAQ",
"vlocity_cmt__GlobalGroupKey__c": "359f10d7-cd58-d516-4ef2-e40958e6a403"
}
}
],
"overallResult": "success"
}
}