Questions tagged [delete]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
32 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,...
1
vote
1answer
860 views

Delete all products and reset their Ids with least queries as possible

Can somebody suggest an intermediate way to delete all products in magento and reset their table's increment id to 1 without using multiple "truncate" queries found when Googling ? Magento version ce-...
0
votes
1answer
24 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?
1
vote
0answers
627 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 ...
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
28 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
33 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
461 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
0
votes
1answer
724 views

CURL request using DELETE method in Magento 2

I am trying to call a curl request for delete method using Magento\Framework\HTTP\Client\Curl.php. In this class makeRequest method is responsible for sending curl request. But as I can see that ...
2
votes
3answers
65 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
52 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
23 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.
2
votes
1answer
681 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::...
0
votes
2answers
703 views

Magento 2 Custom Module Delete Issue [SOLVED]

I'm using Magento 2 Version 2.1.0 {folder path}\magento2\app\code\Custom\Module\view\adminhtml\ui_component\custom_module_index.xml <massaction name="listing_massaction"> <argument name=...
2
votes
2answers
1k 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
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
3answers
966 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 ...
1
vote
2answers
2k views

Delete multiple store views programmatically

I am trying to delete multiple store views using a php script that includes app/Mage.php in the root of my installation. I am able to get the list of websites and store views but I need to somehow ...
0
votes
0answers
16 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
29 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
235 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'...
5
votes
2answers
352 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 ...
1
vote
4answers
283 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="...
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
3answers
3k views

Delete test orders Magento 2

I've done some orders through Magento however I want to remove them now from Sales page to clean it up. I need to remove only test orders, there are also some real order which I don't wish to remove. ...
0
votes
1answer
122 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
86 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?
0
votes
2answers
341 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
1answer
39 views
1
vote
0answers
24 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 ...
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?
2
votes
3answers
5k 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('...
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 ...
0
votes
0answers
48 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.
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?
0
votes
1answer
37 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 ...
0
votes
0answers
48 views

Magento 1.9.2.2 - CCSaved - Button to delete credit card information

I'm running Magento 1.9.2.2 and collect Credit Cards offline. Needless to say, I do not want to keep the credit card information indefinitely on the database. After the order ships, I would like to ...
1
vote
1answer
63 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 = $...
0
votes
1answer
492 views

How to delete orders in Magento 2.2.1 without any extension? [duplicate]

I tried to delete my order list but could not delete those orders and searched on google. They provide the solutions with the use of an extension but I do not want to use extension. I would like to ...
1
vote
0answers
61 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\...
0
votes
1answer
181 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 `...
4
votes
1answer
58 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. ...
2
votes
0answers
76 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 ...
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....
1
vote
0answers
30 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
42 views

Deleting Products Order history?

How can I Delete test order history from my Magento 2 Admin Panel?
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
1
vote
2answers
366 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
2k views

Magento 2: Delete data in custom module

I need to delete my custom table data, I tried below code, but its not works for me. my table: test_id product_id testing 1 15 12345 my code: try{ $model = $this->...