Hello Magento Readers,

How are you all doing? In this tutorial blog, I will help you to Remove the Delete Attribute Option from the Product Attribute in Magento 2. In the last tutorial blog, I have elaborated on Magento 2: How to Get Order Details with Custom Extension Attributes using REST API. Let’s get started with today’s illustration.

Quick Intro: 

Basically, any Magento 2 store owner utilizes the default product attributes or generates product attributes for particular requirements of products.

Mostly all the Magento 2 store has more than one admin user to login in the backend of Magento 2 store. Due to this many times, the product attributes are deleted by mistake or the products and categories are deleted by mistake. To prevent this it is mandatory for the store admin to remove or eliminate the Delete Attribute option from the backend of your Magento 2 store.


Assume that we have created a product attribute ‘cost’ and you desire to remove or eliminate the Delete Attribute. 

Steps to Remove Delete Attribute Option from Product Attribute:

Step 1: Firstly you will have to open the database and find the eav_attribute table.

Inside the eav_attribute table find the cost attribute and search for ‘is_user_defined

Set ‘is_user_defined’ to 0


After this navigate to the product attribute in the backend of your store you will be able to view the Delete Attribute option will be eliminated. 


That’s It.

Wrap Up:

Hopefully, all are able to Remove the Delete Attribute Option from the Product Attribute from your Magento 2 store. In case of any issues or problems you get during the implementation of the above-described steps then let me know in our comment section.

Do share the article with your Magento friends.

Happy Reading.

[Total: 4   Average: 5/5]