Under schema nms:offer there is a Cancel operation
![vraghav_0-1718796689251.png vraghav_0-1718796689251.png](https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/75827iF038A21C6FD3FFFD/image-size/medium?v=v2&px=400)
It takes 3 arguments namely
offerId
comment
offerSpaces
![vraghav_1-1718796835450.png vraghav_1-1718796835450.png](https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/75828iC329A26ADDD6C926/image-size/medium?v=v2&px=400)
Pass in the ID value of offer and the spaces from where you wish to deactivate the offer along with a comment.
From within JS of Adobe Campaign you can call the same function. Kindly refer to https://experienceleague.adobe.com/developer/campaign-api/api/sm-offer-Cancel.html
Please make sure you take necessary action on propositionRcp records which are in either Presented or Activated status. You might wish to cancel their status as well.