1 {"slug":"/references/helper-steps/deleteEntitiesStep","title":"deleteEntitiesStep - Helper Steps API Reference","frontmatter":{"slug":"/references/helper-steps/deleteEntitiesStep","sidebar_label":"deleteEntitiesStep"},"toc":[{"title":"Example","id":"example","level":2},{"title":"Input","id":"deleteentitiesstep-input","level":2}],"blocks":[{"kind":"markdown","html":"This documentation provides a reference to the `deleteEntitiesStep` step. It belongs to the `@medusajs/medusa/core-flows` package."},{"kind":"heading","level":2,"text":"Example","id":"example"},{"kind":"markdown","html":"```ts\ndeleteEntitiesStep({\n moduleRegistrationName: Modules.CART,\n invokeMethod: \"softDeleteCreditLines\",\n compensateMethod: \"restoreCreditLines\",\n data: input.id,\n})\n```"},{"kind":"heading","level":2,"text":"Input","id":"deleteentitiesstep-input"},{"kind":"typeList","sectionTitle":"deleteEntitiesStep","openedLevel":1,"types":[{"name":"DeleteEntitiesStepType","type":"[DeleteEntitiesStepType](/references/helper_steps/interfaces/helper_steps.DeleteEntitiesStepType)","optional":false,"defaultValue":"","description":"","expandable":false,"children":[{"name":"moduleRegistrationName","type":"`string`","description":"The regitration name of the module that contains the method to be invoked.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"invokeMethod","type":"`string`","description":"The method to be invoked.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"compensateMethod","type":"`string`","description":"The method to be invoked in case of compensation (when an error occurs).","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"entityIdentifier","type":"`string`","description":"A string to pass to the compensate method.\nFor example, an ID of the entity to be deleted.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"data","type":"`any`[]","description":"The data to pass to the invoke method.\nFor example, an array of IDs to delete.","optional":false,"defaultValue":"","expandable":false,"children":[]}]}]}]}