- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
deletePromotionRulesWorkflow - Medusa Core Workflows Reference
This documentation provides a reference to the deletePromotionRulesWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow deletes one or more promotion rules. It's used by other workflows, such as batchPromotionRulesWorkflow that manages the rules of a promotion.
You can use this workflow within your own customizations or custom workflows, allowing you to delete promotion rules within your custom flows.
Source CodeExamples#
Steps#
Workflow Hook
Step conditioned by when
Input#
RemovePromotionRulesWorkflowDTO
RemovePromotionRulesWorkflowDTOThe data to remove rules of a promotion.
RemovePromotionRulesWorkflowDTO
RemovePromotionRulesWorkflowDTOrule_type
PromotionRuleTypesThe type of rules to remove.
rule_type
PromotionRuleTypesdata
objectThe data to remove the rules.
data
objectWas this page helpful?