How can I restore Magento 2 deleted product?
Hello @sameh_khalil
Well, If you deleted this product from the backend (Admin) of the magento system, then its near to impossible to restore that product from the Magento backend panel.
You will require to contact server team, if they have taken a back up of your database - then you can get the database from there and restore that database - then you will able to see that deleted product.
otherwise in Magento there is no option to recover the product once its deleted from the admin.
Hope it helps !
The only way is to re-create the product, and use the same configurations as the product you deleted. There is no backup for deleted products.
Hi Manthan
Thank you for your reply. Ok. How can I get the same id number? the deleted product used to have id number 14. So how can I create a new product with the same number 14
Hello @sameh_khalil
Yes that's the reason i haven't suggested to create a new product because you will never get the same id of that product as its auto incremented so. and if you still want then you will require to reset increment id from the database (but that is not suggestible approach)
So that's the reason i told you to restore your database backup - so you will get the same product Id with all the details, only this option is available for you in respect to productId.
So restore the db backup - if its helps accept and close the issue.
Hope it helps !
If you have dump of database you can try insert data from all tables from dump to your database, but its really hard to do, so good luck!
If you’ve accidentally deleted a CMS page, blog, widget, or even a product in Magento 2, you might think the only solution is to re-create everything from scratch. Luckily, there's an easier way! The Trashcan Magento Extension offers a simple solution by acting like a virtual recycle bin for Magento. This free extension ensures that when you delete important CMS blocks or pages, they aren’t gone forever. You can quickly restore them with their original data intact.
With Trashcan:
No need to worry about accidental deletions anymore—Trashcan Magento Extension helps you keep your store running smoothly. Visit VT Netzwelt's website to learn more!