Remove custom Product Attribute from 'Default' Attribute SetIs it possible to use custom attribute set on...

Is the child responsible for the Parent PLUS Loan when the parent has passed away?

Removing whitespace between consecutive numbers

What happens when I Twin Life Transference?

Separate environment for personal and development use under macOS

Boss asked me to sign a resignation paper without a date on it along with my new contract

Explanation of a regular pattern only occuring for prime numbers

Does diversity provide anything that meritocracy does not?

How to deal with possible delayed baggage?

Why was Lupin comfortable with saying Voldemort's name?

Why don't key signatures indicate the tonic?

I have trouble understanding this fallacy: "If A, then B. Therefore if not-B, then not-A."

Plausible reason for gold-digging ant

How to assess the long-term stability of a college as part of a job search

Can 5 Aarakocra PCs summon an Air Elemental?

How to visualize the Riemann-Roch theorem from complex analysis or geometric topology considerations?

Looking for a specific 6502 Assembler

Why did Luke use his left hand to shoot?

Do authors have to be politically correct in article-writing?

Can you tell from a blurry photo if focus was too close or too far?

How can the probability of a fumble decrease linearly with more dice?

What is the difference between "...", '...', $'...', and $"..." quotes?

Short story where statues have their heads replaced by those of carved insect heads

Why are all my replica super soldiers young adults or old teenagers?

How do you funnel food off a cutting board?



Remove custom Product Attribute from 'Default' Attribute Set


Is it possible to use custom attribute set on categories?Magento 2 disabling product by custom attributeCustom attribute values Not showing while compare the product in magento2Layered Navigation doesn't show Custom AttributeGet product custom attribute data Magento 2?When creating a configurable product all attributes show for the attribute set selectedMagento2 How can get the Attributes based on the Attribute Set Id or Attribute Set NameMagento 2.2.4 adding new custom attribute error “Attempt to load value of nonexistent EAV attribute”How to set customer custom attribute in magento 2?Unable to update custom product attribute value programatically













1















I added a custom product attribute to the default attribute set in Magento 2, but now when I try to remove it, by dragging the property to 'Unassigned Attributes' list, nothing happens. Its not clear how to remove a custom product attribute, once you added it to an attribute set.



I also tried this with a new custom product attribute set, added the custom attribute by dragging it to the Product Details group, saving the changes, and then trying to remove it again, but it does not seem to work.



I am using Magento 2.0.7.










share|improve this question














bumped to the homepage by Community 1 min ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.











  • 1





    Here is a screenshot showing the red cross when trying to remove an attribute: imgur.com/09wkJ88

    – omencat
    Jul 17 '16 at 22:50
















1















I added a custom product attribute to the default attribute set in Magento 2, but now when I try to remove it, by dragging the property to 'Unassigned Attributes' list, nothing happens. Its not clear how to remove a custom product attribute, once you added it to an attribute set.



I also tried this with a new custom product attribute set, added the custom attribute by dragging it to the Product Details group, saving the changes, and then trying to remove it again, but it does not seem to work.



I am using Magento 2.0.7.










share|improve this question














bumped to the homepage by Community 1 min ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.











  • 1





    Here is a screenshot showing the red cross when trying to remove an attribute: imgur.com/09wkJ88

    – omencat
    Jul 17 '16 at 22:50














1












1








1








I added a custom product attribute to the default attribute set in Magento 2, but now when I try to remove it, by dragging the property to 'Unassigned Attributes' list, nothing happens. Its not clear how to remove a custom product attribute, once you added it to an attribute set.



I also tried this with a new custom product attribute set, added the custom attribute by dragging it to the Product Details group, saving the changes, and then trying to remove it again, but it does not seem to work.



I am using Magento 2.0.7.










share|improve this question














I added a custom product attribute to the default attribute set in Magento 2, but now when I try to remove it, by dragging the property to 'Unassigned Attributes' list, nothing happens. Its not clear how to remove a custom product attribute, once you added it to an attribute set.



I also tried this with a new custom product attribute set, added the custom attribute by dragging it to the Product Details group, saving the changes, and then trying to remove it again, but it does not seem to work.



I am using Magento 2.0.7.







magento2






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jul 17 '16 at 22:40









omencatomencat

1062




1062





bumped to the homepage by Community 1 min ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 1 min ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.










  • 1





    Here is a screenshot showing the red cross when trying to remove an attribute: imgur.com/09wkJ88

    – omencat
    Jul 17 '16 at 22:50














  • 1





    Here is a screenshot showing the red cross when trying to remove an attribute: imgur.com/09wkJ88

    – omencat
    Jul 17 '16 at 22:50








1




1





Here is a screenshot showing the red cross when trying to remove an attribute: imgur.com/09wkJ88

– omencat
Jul 17 '16 at 22:50





Here is a screenshot showing the red cross when trying to remove an attribute: imgur.com/09wkJ88

– omencat
Jul 17 '16 at 22:50










2 Answers
2






active

oldest

votes


















0














As a workaround, try dragging the unwanted attribute into the middle of the list instead of into the whitespace.






share|improve this answer































    0














    You can remove it by adding the following code to the app/code/MyVendor/MyModule/Setup/InstallData.php file of your module (make sure to change the my_attribute value).



    <?php

    namespace MyVendorMyModuleSetup;

    use MagentoEavSetupEavSetup;
    use MagentoEavSetupEavSetupFactory;
    use MagentoFrameworkSetupInstallDataInterface;
    use MagentoFrameworkSetupModuleContextInterface;
    use MagentoFrameworkSetupModuleDataSetupInterface;

    class InstallData implements InstallDataInterface
    {
    private $eavSetupFactory;

    public function __construct(EavSetupFactory $eavSetupFactory)
    {
    $this->eavSetupFactory = $eavSetupFactory;
    }

    public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
    {
    $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
    $eavSetup->removeAttribute(
    MagentoCatalogModelProduct::ENTITY,
    'my_attribute');
    }
    }


    Hope it helps.



    Purge cache and deploy static content by running the following commands.



    php bin/magento cache:flush
    php bin/magento setup:static-content:deploy -f





    share|improve this answer























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "479"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f126081%2fremove-custom-product-attribute-from-default-attribute-set%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      As a workaround, try dragging the unwanted attribute into the middle of the list instead of into the whitespace.






      share|improve this answer




























        0














        As a workaround, try dragging the unwanted attribute into the middle of the list instead of into the whitespace.






        share|improve this answer


























          0












          0








          0







          As a workaround, try dragging the unwanted attribute into the middle of the list instead of into the whitespace.






          share|improve this answer













          As a workaround, try dragging the unwanted attribute into the middle of the list instead of into the whitespace.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered May 30 '17 at 15:07









          nshiffnshiff

          486313




          486313

























              0














              You can remove it by adding the following code to the app/code/MyVendor/MyModule/Setup/InstallData.php file of your module (make sure to change the my_attribute value).



              <?php

              namespace MyVendorMyModuleSetup;

              use MagentoEavSetupEavSetup;
              use MagentoEavSetupEavSetupFactory;
              use MagentoFrameworkSetupInstallDataInterface;
              use MagentoFrameworkSetupModuleContextInterface;
              use MagentoFrameworkSetupModuleDataSetupInterface;

              class InstallData implements InstallDataInterface
              {
              private $eavSetupFactory;

              public function __construct(EavSetupFactory $eavSetupFactory)
              {
              $this->eavSetupFactory = $eavSetupFactory;
              }

              public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
              {
              $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
              $eavSetup->removeAttribute(
              MagentoCatalogModelProduct::ENTITY,
              'my_attribute');
              }
              }


              Hope it helps.



              Purge cache and deploy static content by running the following commands.



              php bin/magento cache:flush
              php bin/magento setup:static-content:deploy -f





              share|improve this answer




























                0














                You can remove it by adding the following code to the app/code/MyVendor/MyModule/Setup/InstallData.php file of your module (make sure to change the my_attribute value).



                <?php

                namespace MyVendorMyModuleSetup;

                use MagentoEavSetupEavSetup;
                use MagentoEavSetupEavSetupFactory;
                use MagentoFrameworkSetupInstallDataInterface;
                use MagentoFrameworkSetupModuleContextInterface;
                use MagentoFrameworkSetupModuleDataSetupInterface;

                class InstallData implements InstallDataInterface
                {
                private $eavSetupFactory;

                public function __construct(EavSetupFactory $eavSetupFactory)
                {
                $this->eavSetupFactory = $eavSetupFactory;
                }

                public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
                {
                $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
                $eavSetup->removeAttribute(
                MagentoCatalogModelProduct::ENTITY,
                'my_attribute');
                }
                }


                Hope it helps.



                Purge cache and deploy static content by running the following commands.



                php bin/magento cache:flush
                php bin/magento setup:static-content:deploy -f





                share|improve this answer


























                  0












                  0








                  0







                  You can remove it by adding the following code to the app/code/MyVendor/MyModule/Setup/InstallData.php file of your module (make sure to change the my_attribute value).



                  <?php

                  namespace MyVendorMyModuleSetup;

                  use MagentoEavSetupEavSetup;
                  use MagentoEavSetupEavSetupFactory;
                  use MagentoFrameworkSetupInstallDataInterface;
                  use MagentoFrameworkSetupModuleContextInterface;
                  use MagentoFrameworkSetupModuleDataSetupInterface;

                  class InstallData implements InstallDataInterface
                  {
                  private $eavSetupFactory;

                  public function __construct(EavSetupFactory $eavSetupFactory)
                  {
                  $this->eavSetupFactory = $eavSetupFactory;
                  }

                  public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
                  {
                  $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
                  $eavSetup->removeAttribute(
                  MagentoCatalogModelProduct::ENTITY,
                  'my_attribute');
                  }
                  }


                  Hope it helps.



                  Purge cache and deploy static content by running the following commands.



                  php bin/magento cache:flush
                  php bin/magento setup:static-content:deploy -f





                  share|improve this answer













                  You can remove it by adding the following code to the app/code/MyVendor/MyModule/Setup/InstallData.php file of your module (make sure to change the my_attribute value).



                  <?php

                  namespace MyVendorMyModuleSetup;

                  use MagentoEavSetupEavSetup;
                  use MagentoEavSetupEavSetupFactory;
                  use MagentoFrameworkSetupInstallDataInterface;
                  use MagentoFrameworkSetupModuleContextInterface;
                  use MagentoFrameworkSetupModuleDataSetupInterface;

                  class InstallData implements InstallDataInterface
                  {
                  private $eavSetupFactory;

                  public function __construct(EavSetupFactory $eavSetupFactory)
                  {
                  $this->eavSetupFactory = $eavSetupFactory;
                  }

                  public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
                  {
                  $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
                  $eavSetup->removeAttribute(
                  MagentoCatalogModelProduct::ENTITY,
                  'my_attribute');
                  }
                  }


                  Hope it helps.



                  Purge cache and deploy static content by running the following commands.



                  php bin/magento cache:flush
                  php bin/magento setup:static-content:deploy -f






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jan 24 at 17:41









                  Rakesh DongaRakesh Donga

                  1,234314




                  1,234314






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Magento Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f126081%2fremove-custom-product-attribute-from-default-attribute-set%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      “%fieldName is a required field.”, in Magento2 REST API Call for GET Method Type The Next...

                      How to change City field to a dropdown in Checkout step Magento 2Magento 2 : How to change UI field(s)...

                      變成蝙蝠會怎樣? 參考資料 外部連結 导航菜单Thomas Nagel, "What is it like to be a...