Questions tagged [delete]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
15 views

How to remove all special prices for a specific customer group

I accidentally uploaded special prices for an erroneous group of customers. How to remove all special prices for a group of customers, not login (customer_group_id = 0) for all products and items from ...
1
vote
1answer
43 views

main.ERROR: The “EM0EM00284-100” product couldn't be removed

After upgrade to Magento 2.3.5, When trying to delete products from the catalog, we receive an error. This occurs on various types of products, from virtual products, simple products, configurable ...
1
vote
0answers
14 views

Delete Magento 2 base website

I have two websites in Magento installation. I need to remove the current base website completely. Can I just delete the default website or are there other steps to do?
0
votes
1answer
21 views

Method 'delete' is deprecated

phpstorm IDE saing that method 'delete' is deprecated. Is there any alternatives? public function deleteVoucherStatus($entity_id) { $voucherStatus = $this->voucherStatusModelFactory-&...
0
votes
1answer
59 views

How to delete the order Items from magento using Rest API

I want to delete the order Item form the Successfully placed Order how to delete the order item.Can anyone help to solve this situation. Thanks in Advance :)
0
votes
2answers
37 views

Can't delete block from Magento 2 homepage

I'm working on Magento 2 website that somebody developed before me. The website has Ultimo Theme. I'm trying to remove a block with a slider on the top of the home page. In the Ultime guide that block ...
0
votes
3answers
90 views

Unable to delete product in magento2

I try to delete product but it returns exception can not delete product and sku my code is here $productcollection = $this->collectionFactory->create()->addAttributeToSelect('manufacturer'...
0
votes
0answers
22 views

I have created datapatch to delete products with specific value on attribute manufacturer

I have created datapatch to delete products with specific value on attribute manufacturer. I want to delete all products whose manufacturer is LG , my datapatch looks like that <?php declare(...
0
votes
0answers
12 views

Delete multipe field Data

I'm currently working on a field that adds several image files in the same field by saving it with json_encode. The addition works well, I display my images in Front and Back. My concern is that ...
0
votes
1answer
40 views

All urls are not working, it is accidently deleted,

Yesterday, I accidentally deleted unnecessary backup files from the public_html folder and deleted other important files as well. Since then, the main home page of the website has been well displayed,...
0
votes
1answer
77 views

Delete a file from directory magento 2

Is there any way to delete files from var directory, if the file name matched with a condition. I need to delete log files based upon given date. Please let me know how to achieve this in magento2?
0
votes
0answers
32 views

Magento2 need to write a images script

We need to write a script run to determine which images are in use by catalog Magento (in the database), and which ones are not? If they are not referenced (uploaded before, but not in use now), we ...
0
votes
0answers
27 views

No Shipping Quotes or Cart Delete after upgrading to 2.3.3

We are having issues with Shipping Quotes no longer populating, as well as the delete button inside the cart page not working. The delete function works in the mini cart window. Shipping Quotes: We ...
0
votes
1answer
34 views

Sql to delete category and its descendants

I am working with a Magento 2 store with a very large category tree (over 10000 categories). I used CategoryRepository and deleted one by one but this is very time-consuming since delete a brand with ...
0
votes
0answers
54 views

Cannot delete products from store

We are noticing that in our Magento 2 store we are unable to delete products, individually or in bulk, from the catalog page. When selecting a product and hitting Delete, we get an error that says the ...
2
votes
3answers
131 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: ...
1
vote
1answer
219 views

Magento2 : How to remove delete item button from cart page?

I want to remove delete item button from cart page. I am using below xml code to remove this but not working:- Path: app/design/frontend/vendor/theme/Magento_Checkout/layout/...
1
vote
0answers
42 views

Magento 2 Delete operation is forbidden for current area

I have tried to make the solution proposed at Delete operation is forbidden for current area magento 2 But without result I work in magento 2.3.2 with php 7.2 Please help me... Thank you.
0
votes
0answers
23 views

How to restore images of deleted products via sql?

I am using magento 2.2 version , I was deleting few products from admin dashboard , at the time of deleting my site crashed due to server issue and because of that when site goes up I see that 8 ...
0
votes
1answer
32 views

I m very new to magento. Can you please tell me? How can i delete configurable product attributes that i have marked in image

[![enter image description here][1]][1]I am using Magento 2.3.2. I want to delete those two attributes that I have marked. I googled it but did not find any solution. https://i.stack.imgur.com/mJULS....
1
vote
2answers
554 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'...
0
votes
1answer
234 views

Addresses Delete not working in address book Magento 2.3

Add additional addresses to address book in magento 2.3 then Click on ' Delete Address' link in address book it redirect to 404 page and invalid url shows.
2
votes
1answer
97 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?
1
vote
0answers
25 views

After deleting the cart items programmatically for customer and after adding new product, shipping methods not displaying using controller magento2

Hi @ll in my case after deleting all cart items of a customer and after that we are adding new product to the cart. This time new product shipping Methods("Sorry, no quotes are available for this ...
2
votes
1answer
39 views

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

Is there anyway to solve this rather annoying issue?
4
votes
1answer
65 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?
5
votes
2answers
894 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 ...
0
votes
0answers
99 views

How to remove Edit and Delete button from mini-cart and cart page for specific product?

I want to remove edit and delete button from mini-cart and cart page for specific product only. How can I do this? Any help would be appreciated. Thanks.
3
votes
0answers
44 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 ...
1
vote
4answers
464 views

Magento 2: Mass Delete PHP code not Working

I'm very new to Magento, i created a Mass Action for Delete i write this code in /EC/Downloads/view/adminhtml/ui_component/ec_downloads_items.xml <?xml version="1.0"?> <listing xmlns:xsi="...
0
votes
2answers
48 views

Magento 2 delete specific product categories

how can I delete specific categories for a product in Magento 2.Forex: I have a product with a,b,c categories, I have some conditions if the conditions meet my categories remains same but if those ...
1
vote
1answer
64 views

echo my sql query in magento

here is some minor question but it always bother me while doing the code with magento. $resource = Mage::getSingleton('core/resource'); $write = $resource->getConnection('core_write'); $table = $...
1
vote
0answers
94 views

how to fix 5.5.2 Syntax error. m189sm22281031qkf.2 - gsmtp in magento 2 email [closed]

controller delete.php <?php namespace Webkul\Mpquotesystem\Controller\Adminhtml\Managequotes; use Magento\Backend\App\Action; use Webkul\Mpquotesystem; class Delete extends \Magento\Backend\...
2
votes
0answers
82 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 ...
3
votes
3answers
654 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
1
vote
0answers
35 views

Delete Product Custom Option value if it is null in magento 2

I wish to delete the custom options value of a product if it is null without deleting the option. Please provide me a solution to delete it without affecting the option
1
vote
1answer
43 views

Deleting Products Order history?

How can I Delete test order history from my Magento 2 Admin Panel?
0
votes
2answers
472 views

Delete Multiple Tax Rates in Magento 2

I have a number of redundant Tax rates (539 when I only need 269) in Magento 2.2.7 and I'd like to remove them. Is there a way to do this that doesn't involve going into each one and clicking the "...
2
votes
2answers
2k 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 ...
0
votes
1answer
22 views

After Revert Magento Extension Order Page Not Working

After deleted installed extension files order page not working. My order page return Blank page. Log Error : exception 'Mage_Core_Exception' with message 'Invalid block type: ...
0
votes
1answer
50 views

Sales order history : remove tab

In xml, how can I remove tab of order in sales/order/history? Can't find the referenceBlock I just need to remove this tab, not the link. To be precise, I'm using an API that will replace this table. ...
0
votes
1answer
185 views

Exeption on massAction delete

It's my massAction controller: <?php /** * Created by PhpStorm. * User: pkushnerevich * Date: 19.10.18 * Time: 18.20 */ namespace Aty\TestTask\Controller\Adminhtml\AddedList; use Magento\...
1
vote
1answer
34 views

Getting Error messages when trying to delete CC numbers via phpMyAdmin

Magento 1.9.1 Porto theme I am now trying to delete stored credit card numbers from our database using phpMyAdmin as per my question here: How to purge (delete) credit card numbers stored on Magento ...
0
votes
1answer
200 views

After deleting wishlist item programmatically from my Api call It is still visible in frontend magento2?

This is my code: $wishlistIds = $this->_checkoutSession->getWishlistIds(); $wishlist = $this->_wishlist->create()->loadByCustomerId($this->_customerSession->getCustomerId(), true)...
0
votes
1answer
193 views

How to delete all orders

I want to delete all order from magento 2.2.5 i used that code but it didnt work... any advice? SET FOREIGN_KEY_CHECKS=0; # Clean order history TRUNCATE TABLE `...
0
votes
1answer
466 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 ...
1
vote
2answers
517 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?
4
votes
1answer
61 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. ...
1
vote
0answers
22 views

How to delete all stored Credit card #'s except the ones from within the last month?

Magento 1.9.1 Porto theme We have credit card numbers stored. We need to delete them (for security reasons) but we would prefer to keep the numbers from within the last month just in case there be ...
0
votes
3answers
5k views

Delete product from Magento 2

I want to know how to delete product from Magento 2.2.4 in the admin store? I don't find the section and all answers I found on internet are with PHP code.