deleteEntitiesStep - Helper Steps API Reference
This documentation provides a reference to the deleteEntitiesStep
step. It belongs to the @medusajs/medusa/core-flows
package.
This step deletes one or more entities using methods in a module's service.
Example#
Input#
DeleteEntitiesStepType
DeleteEntitiesStepType
DeleteEntitiesStepType
DeleteEntitiesStepTypemoduleRegistrationName
stringThe regitration name of the module that contains the method to be invoked.
moduleRegistrationName
stringinvokeMethod
stringThe method to be invoked.
invokeMethod
stringcompensateMethod
stringThe method to be invoked in case of compensation (when an error occurs).
compensateMethod
stringdata
any[]The data to pass to the invoke method.
For example, an array of IDs to delete.
data
any[]entityIdentifier
stringOptionalA string to pass to the compensate method.
For example, an ID of the entity to be deleted.
entityIdentifier
stringOptionalWas this page helpful?