Questions tagged [delete]

The tag has no usage guidance, but it has a tag wiki.

Filter by
Sorted by
Tagged with
0
votes
5answers
3k views

How to delete an order programatically in Magento 2?

How can we delete a Magento2 order programatically? There's ways to do this in Magento 1.X. Is it the same methodology for Magento2 as well?
8
votes
4answers
15k views

Cleaning up Magento installation: Which files & folders can be deleted?

I want to make some space on disk and clean What file & folders are safe to delete? I found /media/import/ files are safe to delete Deleting files and folder effect performance too? Is it ...
4
votes
2answers
4k views

Truncate table using resource model in Magento 2

I have a custom module and i want to add remove every data including the increment id, using resource model in magento 2, i've read the solution in here but this is for magento 1, i'm not sure how to ...
5
votes
4answers
2k views

Issue with quote (wrong items_count): not possible to delete products

For some of the products I got the following error while trying to delete them using the backend: SQLSTATE[22003]: Numeric value out of range: 1690 BIGINT UNSIGNED value is out of range in '([DB].q....
2
votes
1answer
2k views

Add 'Delete my account' link in Customer Navigation Menu

Is there a way to place a link (ie called Delete my account next to the Log out link in the Customer Navigation Account Dashboard? I know there are paid extensions available for that but I'd like to ...
2
votes
3answers
3k views

Delete products from order programmatically

I use Magento CE 1.8.1.0 and I have developed a php script that can delete a product from an order. After the product is deleted the value of the order is the same. How can I reduce the order value ...
2
votes
3answers
6k views

How to Delete All Products Within a Category

Main Question How can I delete all products within a specific category? Detailed Version: My goal is to remove the products and product images completely from my store inventory. I plan to use the ...
1
vote
2answers
312 views

how can I empty magento 2 orders, customer and products data reset to 1

how can I empty Magento 2 order customers products data to reset 1 how I can do this?? when i run in sql MySQL said: Documentation #1146 - Table 'magento_db.gift_message' doesn'...
1
vote
0answers
660 views

Magento 2: Delete duplicate products programatically

I need to search Magento 2 DB for duplicate SKUs and remove duplicate products using a script, i found a very useful script here: Remove duplicated products from catalog. but it's not compatible with ...
1
vote
2answers
2k views

Magento2 - How to remove item from wishlist?

I want to remove an item from wishlist in magento2 with wishlist id or wish list item id, how can do that ?
2
votes
2answers
2k views

Magento 2 How to remove the delete option on magento/admin/catalog/product/index

which files should I edit to remove the delete option at action drop-down menu? I've tried to remove $this->getMassactionBlock()->addItem( 'delete', [ ...
2
votes
2answers
6k views

How do I delete products in magmi

I have been using magmi to import products in bulk, but now need to delete some of them. How can I do this?
1
vote
2answers
1k views

Delete all orders older than specific date by db query

I need to delete about 7500 orders and keep the orders from 26.08.2016 and onward. I would like to do it through db query. Is it possible or I have to stick with admin panel?
1
vote
1answer
2k views

Magento2 mini cart item delete alert

Can anyone let me know, How an alert box getting delete an item popup, from minicart: location below: line 71: vendor/magento/module-checkout/view/frontend/web/js/view/minicart.js Where defined the ...
0
votes
1answer
607 views

Delete cross-sell links programmatically

I have a problem concerning the cross-sell links. I'm building a custom module and I need to add and delete cross-sell links according to a product. I know how to create the cross-sell links using: $...
0
votes
2answers
483 views

How to delete products from frontend using object manager in magento 2?

I want to delete the products from frontend side, but using object manager. I does not want to using any registry object.
0
votes
1answer
415 views

Magento 2 - How to remove/unset all categories from a product using plugin?

I am trying to remove/unset all categories from a product using below code. It's working with Magento 2.1 but not with Magento 2.2. How can we do this? app/code/Vender/Module/etc/di.xml <plugin ...