Questions tagged [delete]

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

Filter by
Sorted by
Tagged with
16
votes
3answers
2k views

Uninstallation Module

I have created an extension that creates a category attribute when installed first time. But now when I disable/Uninstall the extension, I get an error message on "Manage Categories" page. I know ...
7
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 ...
7
votes
5answers
8k views

How to delete a product in Magento-2 programmatically?

I am trying to use below code but it is not working, $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $product = $objectManager->create('\Magento\Catalog\Model\Product'); $...
6
votes
5answers
16k views

Magento 2: Delete magento product attributes?

How do you delete created product attributes in Magento 2? I can't get rid of it. I have couple of Magento product attributes which not needed
6
votes
3answers
10k views

Remove Item By key Using with Own attribute

I am using the Function $collection->removeItemByKey($key); As i know that the above function remove product one by one based on the key and that key is product id, My Question is Can we remove ...
6
votes
1answer
292 views

What are the footprints a magento module can leave in the magento system?

I installed a module/extension but it does not work well for our needs. I want to completely delete the module with all its footprints. I removed the following: code pool - deleted the folder ...
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....
5
votes
2answers
215 views

How to Delete Quote item Based on the condition in magento 2

I have requirement like below. I need to read all quote items and their sku, against the custom table, If value matched, need to delete that quote item and update qty 1 for remaining items but this ...
5
votes
1answer
124 views

Magento extension uninstall hook

Is there any way to get a magento extension uninstall hook,the problem is that if user will uninstall my module then some dependent modules will become unstable so i want to show him a notification ...
5
votes
1answer
841 views

how to delete catalog price rule after order placed ?

i want to delete catalog price rule after order placed how to delete catalog price rule after order placed help of event observer Method
4
votes
2answers
3k 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 ...
4
votes
1answer
62 views

How do i delete products which are not in a category?

our site has over 90,000 products which need to be deleted and are not in categories, but the products in the categories we want to keep, how do i solve this?
4
votes
1answer
56 views

Magento 2.2.5: Idea about delete “Banner_Slide”

i'm doing "Banner Slider" and looking for how to delete column in banner_slide. Its hard to explain. So just look in my example: So this is what i've done til now. A banner which contain 3 slide. ...
3
votes
2answers
2k views

Can i delete images left in media/import/ folder

Once i have imported my product images from the media/import folder in magento - is it safe to delete them from that folder? I want to delete them to save disk space but want to make sure deleting ...
3
votes
4answers
1k views

How to delete product without 404

I have some products I want to delete from my website. It means I don't want them in catalog nor in search results. In the same time I don't want 404 error page for these url products. Best solution ...
3
votes
0answers
35 views

How to disable duplicated values options when adding new option of an attribute magento 2

I have set the attribute color as unque value but still can add same value and i have tried with an event catalog_entity_attribute_save_before but now he delete all the label and values please any ...
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?
2
votes
3answers
4k views

How to clear cart and minicart programatically in Magento 2?

How to clear cart and minicart programatically in Magento 2?? I am using this code $quoteId = $this->_checkoutSession->getQuote()->getId(); $quoteModel = $this->objectManager->create('...
2
votes
4answers
4k views

Bulk item delete via csv

i am a newbie in magento so dont know much about coding and scrippts, my problem is i have list of SKU's which are end of line now and has been replaced with new products. i want to delete them so i ...
2
votes
5answers
3k views

Delete Product Magento 2

I want to delete products by sctip. They way I am doing it for test : if(!empty($products)) { foreach($products as $_product) { $sku = $_product->...
2
votes
2answers
378 views

While trying to delete address its redirecting to 404 page in Magento 2

When I try to delete additional address in Magento 2 customer dashboard its redirecting to 404 Page. My URL format mentioned below. /customer/address/delete/id/13/form_key/xkTKVSSxqip79bZ1
2
votes
1answer
356 views

Magento : How to Alter Delete Confirm Message?

I want to alter the message of delete confirm in custom extension and I don't know how. Someone can help me? DutyController.php class Nothing_Duty_Adminhtml_DutyController extends ...
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
942 views

Unable to delete tax rate

Whenever I try to delete a tax rate, I get below error message. Tax rate cannot be removed. It exists in tax rule I checked there is no tax rule in admin. I have deleted all tax rules. UPDATE I ...
2
votes
2answers
2k views

How to delete a custom table entry by clicking a delete button in a phtml file in Magento 2?

Fetched details from my custom module and displayed it in a table. There is a delete option give to corresponding row entries. The above table codes written in a phtml page. How to delete the db ...
2
votes
1answer
2k views

How can i delete products from specified category [duplicate]

How can i delete products from specified category by using database or control panel of the magento.
2
votes
1answer
606 views

Where is function for remove image from admin of product

I want to know function logic location, when product image is remove from admin section. The checkbox is present in "images" tab. After check checkbox of images in "Remove" column and hit save or save ...
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 ...
2
votes
3answers
2k 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
1answer
80 views

How to create Delete function in My Order page

I want to add a new action in My Orders page that is Delete action How can I do that? Can anyone help me with this function?
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
3answers
52 views

How to delete bunch of products in Magento2?

Is there a short and best way to delete bunch of products in Magento2. I am having list if 1,20,000 SKUs and want to delete that. Tried: Read CSV Delete products in loop by repository. Problem: ...
2
votes
1answer
38 views

In Magento 1 if i try to delete over 50 products the site crashes

Is there anyway to solve this rather annoying issue?
2
votes
0answers
74 views

Magento 2.2.5 - Delete all products and products images

I have a site with Magento 2.2.5, with thousands of products imported via Magmi v0.7.23-git with csv. I tried to delete all these products with the Magmi utility 'Clear Catalog v1.0.4', and then ...
2
votes
2answers
772 views

How to delete object from collection in magento2

How to remove any object from magento 2 collection. If we have collection of products and we want to delete product which is at first index . how to delete that product without deleting it from ...
2
votes
0answers
96 views

Product Delete create re- indexer issue in magento 2

When I delete a product in Magento 2 using CSV import or through admin then after I re-index then category product and product category having indexer issue like SQLSTATE[23000]: Integrity ...
2
votes
2answers
388 views

how to remove “Powered by Searchanise” from the search bar

I am building the magento ecommerce website named "bookslab.in". I want to remove the "Powered by Searchanise" from the search bar of my magento site. I had attached the screenshot of which section i ...
2
votes
1answer
512 views

What is the best event to be fired when adding and deleting a free product in Magento 2?

I want to add product Y to cart with product X and want to delete product Y when product X is deleted.(both should be worked automatically). For this purpose what will be the best event to be fired??
2
votes
1answer
662 views

The difference of “remove product links” in cart and minicart (rwd theme)

Looking at the remove product links I found two different below codes: In .../checkout/cart/item/default.phtml <a href="<?php echo $this->getDeleteUrl() ?>" title="<?php echo Mage::...
2
votes
0answers
323 views

Batch Removing Broken Images from Magento

We just had a team mass import about 2500 products to our magento store and the only way they could do it from Zen Cart's Image Handler 2 plugin was to import 4 images for each product even if the ...
2
votes
0answers
265 views

Delete all orders and quotes of customers that do not exist anymore

On our testing environment we are constantly creating new customers and also (mass) removing them again, currently only having 12 customers. Now after a while our sales_flat_order (5038 rows) and ...
1
vote
1answer
3k views

can not able to delete the images of products

I want to delete the uploaded images. what i tried is I went to backend and than go to catalog > Manage products, i opened single product and went to Images section. i checked on checkbox below ...
1
vote
2answers
158 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
2answers
324 views

How to delete color attribute option by using label in Magento 2?

Can we delete product attribute options by using label? For example say attribute:color has options like green, red, yellow how to delete red from this? I used below code. $objectManager = \...
1
vote
2answers
1k views

Fatal error: Call to a member function delete()

I want use the code, but i get a error: "Fatal error: Call to a member function delete() on boolean in …" The code: public function _del() { umask(0); Mage::app(); Mage::app()->...
1
vote
1answer
3k views

How do I delete a customer account programmatically in Magento2 CE?

Version: Magento 2.1.0 I run the following codes in my controller and got error: $customer = $this->customerFactory->create()->load($id); $customer->delete(); Error: Exception #0 (...
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
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 ?
1
vote
2answers
301 views

How we can delete Magento 2 order programmatically? [duplicate]

I want to delete orders and associated data from my store programmatically. Share any idea, How can we do that?
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 ...