Model Purging

Use the Purge web service to delete existing data models from the product.

Data models are typically purged to delete obsolete offers or bundles that are no longer for sale.

The Model Loading micro service exposes the purgeService web service using the following endpoint:

http(s)://<host>:<port>/mle/api/v1/purgeService
Purge Request
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:off="http://www.tibco.com/AFF/OfflineCatalogue">
   <soapenv:Header />
   <soapenv:Body>
      <off:PurgeRequest ExternalBusinessTransactionID="123">
         <!--You have a CHOICE of the next 2 items at this level-->
         <!--Optional:-->
         <!--type: string-->
         <off:allProduct>true</off:allProduct>
         <!--Optional:-->
         <!--type: string-->
         <off:productId>product1,NonExistingProduct</off:productId>
         <!--Optional:-->
         <!--type: string-->
         <off:allPrice>true</off:allPrice>
         <!--Optional:-->
         <!--type: string-->
         <off:allDiscount>true</off:allDiscount>
         <!--Optional:-->
         <!--type: string-->
         <off:allOPERule>true</off:allOPERule>
         <!--Optional:-->
         <!--type: string-->
         <off:allCategory>true</off:allCategory>
      </off:PurgeRequest>
   </soapenv:Body>
</soapenv:Envelope>

Purge Response

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
  	<PurgeResponse ExternalBusinessTransactionID="123" xmlns="http://www.tibco.com/AFF/OfflineCatalogue">
     	<purgeResult>
        	<Message>Product(s) successfully removed: [Product1]. Product(s) could not be removed: [NonExistingProduct]</Message>
     	</purgeResult>
  	</PurgeResponse>
   </soap:Body>
</soap:Envelope>