Home » Magento20 January 2016

Magento: Delete Customers Programmatically

Here is a quick code to delete customers programmatically in Magento. You can manually delete customers from customer admin grid. But, sometime you might need to do it automatically through code.

Here is the full code to do so. This code can be saved in a new file in your Magento root folder and then you can run it in browser.

In this code, I have selected customers created within a certain date range. And then deleted those selected customers individually.

Hope this helps.
Thanks.

Magento

Get New Post by Email

Find me on

FacebookTwitterGoogle+LinkedInRSS Feed

Comments are closed.