How to delete tags in Craft CMS 3

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
3
down vote

favorite












I want to delete some of the tags that are entered in the system.



Since there is no way to do that in Control Panel, and there is not a valid plugin that can do this (know that from my previous question).



The only way to delete tags is in the database. So I found this comment. I think this is for CraftCMS 2, but is it still the same and for CraftCMS 3?







share|improve this question






















  • Just as a comment, I find that using categories instead of tags gives you much more control, especially if this is a site you are opening up to an end client.
    – Jamie Wade
    Aug 29 at 7:57










  • I use categories in one project before. But since there is not need for grouping filters in this one, I decide to use tags. I was not aware that there is`t tag management system build in CraftCMS since I need it.
    – Ivaylo Petrov
    Aug 29 at 9:13














up vote
3
down vote

favorite












I want to delete some of the tags that are entered in the system.



Since there is no way to do that in Control Panel, and there is not a valid plugin that can do this (know that from my previous question).



The only way to delete tags is in the database. So I found this comment. I think this is for CraftCMS 2, but is it still the same and for CraftCMS 3?







share|improve this question






















  • Just as a comment, I find that using categories instead of tags gives you much more control, especially if this is a site you are opening up to an end client.
    – Jamie Wade
    Aug 29 at 7:57










  • I use categories in one project before. But since there is not need for grouping filters in this one, I decide to use tags. I was not aware that there is`t tag management system build in CraftCMS since I need it.
    – Ivaylo Petrov
    Aug 29 at 9:13












up vote
3
down vote

favorite









up vote
3
down vote

favorite











I want to delete some of the tags that are entered in the system.



Since there is no way to do that in Control Panel, and there is not a valid plugin that can do this (know that from my previous question).



The only way to delete tags is in the database. So I found this comment. I think this is for CraftCMS 2, but is it still the same and for CraftCMS 3?







share|improve this question














I want to delete some of the tags that are entered in the system.



Since there is no way to do that in Control Panel, and there is not a valid plugin that can do this (know that from my previous question).



The only way to delete tags is in the database. So I found this comment. I think this is for CraftCMS 2, but is it still the same and for CraftCMS 3?









share|improve this question













share|improve this question




share|improve this question








edited Aug 29 at 9:05









Jay

409120




409120










asked Aug 29 at 7:08









Ivaylo Petrov

446




446











  • Just as a comment, I find that using categories instead of tags gives you much more control, especially if this is a site you are opening up to an end client.
    – Jamie Wade
    Aug 29 at 7:57










  • I use categories in one project before. But since there is not need for grouping filters in this one, I decide to use tags. I was not aware that there is`t tag management system build in CraftCMS since I need it.
    – Ivaylo Petrov
    Aug 29 at 9:13
















  • Just as a comment, I find that using categories instead of tags gives you much more control, especially if this is a site you are opening up to an end client.
    – Jamie Wade
    Aug 29 at 7:57










  • I use categories in one project before. But since there is not need for grouping filters in this one, I decide to use tags. I was not aware that there is`t tag management system build in CraftCMS since I need it.
    – Ivaylo Petrov
    Aug 29 at 9:13















Just as a comment, I find that using categories instead of tags gives you much more control, especially if this is a site you are opening up to an end client.
– Jamie Wade
Aug 29 at 7:57




Just as a comment, I find that using categories instead of tags gives you much more control, especially if this is a site you are opening up to an end client.
– Jamie Wade
Aug 29 at 7:57












I use categories in one project before. But since there is not need for grouping filters in this one, I decide to use tags. I was not aware that there is`t tag management system build in CraftCMS since I need it.
– Ivaylo Petrov
Aug 29 at 9:13




I use categories in one project before. But since there is not need for grouping filters in this one, I decide to use tags. I was not aware that there is`t tag management system build in CraftCMS since I need it.
– Ivaylo Petrov
Aug 29 at 9:13










2 Answers
2






active

oldest

votes

















up vote
4
down vote



accepted










I do believe this plugin can help?



https://github.com/ethercreative/tags






share|improve this answer



























    up vote
    1
    down vote













    Yes the same still applies. You can either delete it via DB directly in your %elements column or you can just run



    PHP



    Craft::$app->getElements()->deleteElementById(x)


    Twig



    % do craft.app.getElements().deleteElementById(x) %





    share|improve this answer




















      Your Answer







      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "563"
      ;
      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',
      convertImagesToLinks: false,
      noModals: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













       

      draft saved


      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcraftcms.stackexchange.com%2fquestions%2f27518%2fhow-to-delete-tags-in-craft-cms-3%23new-answer', 'question_page');

      );

      Post as a guest






























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      4
      down vote



      accepted










      I do believe this plugin can help?



      https://github.com/ethercreative/tags






      share|improve this answer
























        up vote
        4
        down vote



        accepted










        I do believe this plugin can help?



        https://github.com/ethercreative/tags






        share|improve this answer






















          up vote
          4
          down vote



          accepted







          up vote
          4
          down vote



          accepted






          I do believe this plugin can help?



          https://github.com/ethercreative/tags






          share|improve this answer












          I do believe this plugin can help?



          https://github.com/ethercreative/tags







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Aug 29 at 8:30









          Jay

          409120




          409120




















              up vote
              1
              down vote













              Yes the same still applies. You can either delete it via DB directly in your %elements column or you can just run



              PHP



              Craft::$app->getElements()->deleteElementById(x)


              Twig



              % do craft.app.getElements().deleteElementById(x) %





              share|improve this answer
























                up vote
                1
                down vote













                Yes the same still applies. You can either delete it via DB directly in your %elements column or you can just run



                PHP



                Craft::$app->getElements()->deleteElementById(x)


                Twig



                % do craft.app.getElements().deleteElementById(x) %





                share|improve this answer






















                  up vote
                  1
                  down vote










                  up vote
                  1
                  down vote









                  Yes the same still applies. You can either delete it via DB directly in your %elements column or you can just run



                  PHP



                  Craft::$app->getElements()->deleteElementById(x)


                  Twig



                  % do craft.app.getElements().deleteElementById(x) %





                  share|improve this answer












                  Yes the same still applies. You can either delete it via DB directly in your %elements column or you can just run



                  PHP



                  Craft::$app->getElements()->deleteElementById(x)


                  Twig



                  % do craft.app.getElements().deleteElementById(x) %






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Aug 29 at 7:24









                  Robin Schambach

                  13.3k1427




                  13.3k1427



























                       

                      draft saved


                      draft discarded















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcraftcms.stackexchange.com%2fquestions%2f27518%2fhow-to-delete-tags-in-craft-cms-3%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      Comments

                      Popular posts from this blog

                      Long meetings (6-7 hours a day): Being “babysat” by supervisor

                      Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

                      Confectionery