delete_customer
Delete a customer by providing their MongoDB ObjectId to remove the record from the legacy CRUD API.
Instructions
Delete a customer by their id
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customer_id | Yes | MongoDB ObjectId of the customer to delete |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | MongoDB ObjectId of the customer | |
| isError | No | Indicates if an error occurred | |
| message | No | Confirmation message | |
| customer | No | The found customer | |
| customers | No | List of customers |