- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
deleteReturnsStep - Medusa Core Workflows Reference
This documentation provides a reference to the deleteReturnsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step deletes one or more returns.
1import { createWorkflow } from "@medusajs/framework/workflows-sdk"2import { deleteReturnsStep } from "@medusajs/medusa/core-flows"3 4const myWorkflow = createWorkflow(5 "my-workflow",6 () => {7 const data = deleteReturnsStep({8 "ids": [9 "id_AtoqZpsyz9AYB9WoD5"10 ]11 })12 }13)
Input#
DeleteReturnStepInput
DeleteReturnStepInputThe details of deleting the returns.
DeleteReturnStepInput
DeleteReturnStepInputids
string[]The IDs of the returns to delete.
ids
string[]Output#
((void & WorkflowDataProperties<void>) | { [x: string]: string[] | WorkflowData<string[]>; } | never[]) & (void | never[] | Record<string, string[]>)
((void & WorkflowDataProperties<void>) | { [x: string]: string[] | WorkflowData<string[]>; } | never[]) & (void | never[] | Record<string, string[]>)
((void & WorkflowDataProperties<void>) | { [x: string]: string[] | WorkflowData<string[]>; } | never[]) & (void | never[] | Record<string, string[]>)
((void & WorkflowDataProperties<void>) | { [x: string]: string[] | WorkflowData<string[]>; } | never[]) & (void | never[] | Record<string, string[]>)((void & WorkflowDataProperties<void>) | { [x: string]: string[] | WorkflowData<string[]>; } | never[]) & (void | never[] | Record<string, string[]>)
((void & WorkflowDataProperties<void>) | { [x: string]: string[] | WorkflowData<string[]>; } | never[]) & (void | never[] | Record<string, string[]>)
((void & WorkflowDataProperties<void>) | { [x: string]: string[] | WorkflowData<string[]>; } | never[]) & (void | never[] | Record<string, string[]>)
((void & WorkflowDataProperties<void>) | { [x: string]: string[] | WorkflowData<string[]>; } | never[]) & (void | never[] | Record<string, string[]>)Was this page helpful?