cancel
Showing results for 
Search instead for 
Did you mean: 

Delete inactive customers

SOLVED

Delete inactive customers

I am almost ready to migrate to M2, prior to this I want to delete customer that have been inactive for 2 years. does anyone know a way of doing this

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Delete inactive customers

Hi @miller75 

 

I would suggest you to delete those customer by writing script.

 

Following i am sharing two links which helps you to achieve the same.

 

http://blog.chapagain.com.np/magento-delete-customers-programmatically/ 

 

https://magento.stackexchange.com/questions/123782/how-to-deactivate-the-user-automatically-after-1-... 

 

Second link is mainly use to get the inactivate customer data (created at) and first link will use to delete the customer programatically - so by combining both the scripts you will get the results.

 

Hope it helps

 

if issue solved,Click Kudos & Accept as Solution

View solution in original post

4 REPLIES 4

Re: Delete inactive customers

Hi @miller75 

 

I would suggest you to delete those customer by writing script.

 

Following i am sharing two links which helps you to achieve the same.

 

http://blog.chapagain.com.np/magento-delete-customers-programmatically/ 

 

https://magento.stackexchange.com/questions/123782/how-to-deactivate-the-user-automatically-after-1-... 

 

Second link is mainly use to get the inactivate customer data (created at) and first link will use to delete the customer programatically - so by combining both the scripts you will get the results.

 

Hope it helps

 

if issue solved,Click Kudos & Accept as Solution

Re: Delete inactive customers

Thanks for the reply, the solution in the links would have worked but when I tried to run the scripts I realized I had deleted the log files as part of my cleanup so I couldn't base it on last login.

 

In the end I added a last purchase date column to the customer grid as well as increasing the number of customers I could view on one page to 15000 then deleted them from the backend 

Re: Delete inactive customers

Hi @miller75 

 

Perfect - Thanks for sharing your work-around as well - its true if we don't have log we can utilize the purchase date to identify the last active date of customers.

 

Anyways glad to know that your issue gets resolved - happy to help and keep helping others Smiley Happy

if issue solved,Click Kudos & Accept as Solution