feat(add delete customer endpoint): An endpoint that deletes a customer #3735
Replies: 11 comments 2 replies
-
I think a potential blocker is what would happen to any orders, notifications, carts etc stored in other tables that are keyed to that customer. One option would be to remove any identifying information (name, etc) and mark the customer as inactive. But even that leaves the question of what to do with addresses. If you've sent an order to a customer, you need to keep that in your system for your records, so that you have information on where the order was shipped. |
Beta Was this translation helpful? Give feedback.
-
I would propose both: deactivate and physically remove all user data (EU law) |
Beta Was this translation helpful? Give feedback.
-
@MedusaNick any updates on this? |
Beta Was this translation helpful? Give feedback.
-
👍 💯 Or at least let us delete manually created customers who have no activity... |
Beta Was this translation helpful? Give feedback.
-
I would suggest adding an archive, since we might need to revisit the deleted customer's info. |
Beta Was this translation helpful? Give feedback.
-
This is a real concerne in Europe |
Beta Was this translation helpful? Give feedback.
-
@adevinwild any news on this topic? |
Beta Was this translation helpful? Give feedback.
-
I've thought of a way we can do this ourselves at the moment, but Im not sure if this is the way to go (untill it is supported natively):
We end up with either a deleted user or a soft deleted user. I hope that if we set |
Beta Was this translation helpful? Give feedback.
-
At the moment you can just mark customer as deleted through DB, just make request: |
Beta Was this translation helpful? Give feedback.
-
yes the only thing i was able to do is that i had marked customer's deleted_at = Date.now() and removed its address from the address table using its customer_id and replace its name and number by randomString |
Beta Was this translation helpful? Give feedback.
-
Feature request
Add option to DELETE /admin/customers
Right now afaik there is no way to delete customers through the API.
I haven't found many discussions about this, but it seems like a pretty essential thing to have.
What is keeping us from adding this?
Beta Was this translation helpful? Give feedback.
All reactions