cancel
Showing results for 
Search instead for 
Did you mean: 

Automatically products are getting deleted one by ome from backend

Automatically products are getting deleted one by ome from backend

Hi ,
We have been on a Magento 2.3.3 project and completed the development and hosted the site . Suddenly we found that the products are automatically getting deleted one by one with out any manual intervention. And after few minutes all products (5459 in numbers ) are gone

We have no clue why and how this happened. The site was migrated from development server to live server that is what we did.

Can anyone help us to understand
2 REPLIES 2

Re: Automatically products are getting deleted one by ome from backend

@arunava_chakrab have you check if there is any cron running which is deleting the products.

 

Also please check the database if you get any clue from there.

 

Thanks

Re: Automatically products are getting deleted one by ome from backend

@arunava_chakrab 

Do you have Magento code in version control like Git / Bitbucket etc? Is same thing is working properly in staging than deletion should not be happening in the Production. There can be various reason I can think of. This is definitely a coding/coder issue.

 

Following things can be checks:

1. Do you have a delete query hard coded somewhere?

2. Staging DB user have delete permission? Possibly production has...

3. Someone manually did it without realizing it? It is possible and I have seen this personally. From product list screen instead of selecting visible all on the page user have selected "All" and deleted all products.

4. Are you on Commerce or Open source version? If commerce then you can look into admin logs.

5. Ask you developer if they have some unbaked code checked in.

 

Nothing happens all by itself unless it was meant to do that.

- Tarandeep
Problem solved?Please give 'Kudos' and accept 'Answer as Solution'.