{"id":1489,"date":"2020-12-27T06:02:56","date_gmt":"2020-12-27T06:02:56","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/remove-delete-attribute-option-from-product-attribute-magento-2\/"},"modified":"2025-07-22T17:32:12","modified_gmt":"2025-07-22T12:02:12","slug":"remove-delete-attribute-option-from-product-attribute-magento-2","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/remove-delete-attribute-option-from-product-attribute-magento-2\/","title":{"rendered":"How to Remove &#8220;Delete Attribute&#8221; Option from Product Attribute in Magento 2"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Being a store owner, you may have leveraged default product attributes or&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/create-product-attribute-in-magento-2\/\" target=\"_blank\" rel=\"noreferrer noopener\">created product attributes in Magento 2<\/a>&nbsp;to address product specific needs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In most of the cases, a store is administered by multiple users by&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/allow-multiple-admin-login-in-magento-2\/\" target=\"_blank\" rel=\"noreferrer noopener\">allowing multiple admin login in Magento 2<\/a>&nbsp;and there may be the chances of deleting some products, categories, product attributes or any important functionality by mistake by any of the admin users. To avoid the same, the admin may want to<strong>&nbsp;remove \u201cDelete Attribute\u201d option from Product Attribute in Magento 2<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2020\/12\/Annotation-on-2020-12-16-at-10-17-49-1024x482.png\" alt=\"Remove \u201cDelete Attribute\u201d option from Product Attribute in Magento 2\" class=\"wp-image-12117\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The default Magento 2 does not allow to remove the \u201cDelete Attribute\u201d option from the product attribute. And thus, the post explains stepwise method to&nbsp;<em>remove \u201cDelete Attribute\u201d option from product attribute in Magento 2<\/em>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Stepwise Method to Remove \u201cDelete Attribute\u201d Option from Product Attribute in Magento 2<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Let\u2019s say, you have created a product attribute named \u201cColor\u201d and you want to remove the \u201cDelete Attribute\u201d for the same. Follow the below steps to remove \u201cDelete Attribute\u201d option for the color product attribute.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open your database and search&nbsp;<strong>eav_attribute<\/strong>&nbsp;table.<\/li>\n\n\n\n<li>In the&nbsp;<strong>eav_attribute<\/strong>&nbsp;table, search the&nbsp;<strong>color<\/strong>&nbsp;attribute and find column&nbsp;<strong>\u201cis_user_defined\u201d<\/strong>.<\/li>\n\n\n\n<li>Set&nbsp;<strong>\u201cis_user_defined\u201d<\/strong>&nbsp;to<strong>&nbsp;0<\/strong><\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2020\/12\/Annotation-on-2020-12-16-at-10-24-57-1024x234.png\" alt=\"Remove &quot;Delete Attribute&quot; Option from Product Attribute in Magento 2\" class=\"wp-image-12118\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Now move to the product attribute edit page, and you can see the \u201cDelete Attribute\u201d option is removed.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2020\/12\/Screenshot-at-December-16th-2020-10.27.55-am-1024x477.png\" alt=\"Remove &quot;Delete Attribute&quot; Option from Product Attribute in Magento 2\" class=\"wp-image-12119\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Done. Removing the \u201cDelete Attribute\u201d option from product attribute will no longer allow anyone to delete the attribute.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Do consider sharing the post with Magento Community via social media.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thank you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Being a store owner, you may have leveraged default product attributes or&nbsp;created product attributes in Magento 2&nbsp;to address product specific needs. In most of the&#8230;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-1489","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1489","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=1489"}],"version-history":[{"count":3,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1489\/revisions"}],"predecessor-version":[{"id":19042,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1489\/revisions\/19042"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=1489"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=1489"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=1489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}