deleteCustomersWorkflow - Medusa Core Workflows Reference

This documentation provides a reference to the deleteCustomersWorkflow. It belongs to the @medusajs/medusa/core-flows package.

This workflow deletes one or more customers.

Steps#

Input#

DeleteCustomersWorkflowInputDeleteCustomersWorkflowInput

Hooks#

customersDeleted#

Example

Code
1import { deleteCustomersWorkflow } from "@medusajs/medusa/core-flows"2
3deleteCustomersWorkflow.hooks.customersDeleted(4	(async ({ ids }, { container }) => {5		//TODO6	})7)

Input

Handlers consuming this hook accept the following input.

input__type
Was this page helpful?