<p>I do believe this plugin can help?</p>

<p><a href="https://github.com/ethercreative/tags" rel="noreferrer">https://github.com/ethercreative/tags</a></p>

CC BY-SA 4.0
2018-08-29T08:30:15.197Z
2018-08-29T08:30:15.197Z
Jay
<p>Yes the same still applies. You can either delete it via DB directly in your <code>{{%elements}}</code> column or you can just run </p>

<h3>PHP</h3>

<pre class="lang-php prettyprint-override"><code>Craft::$app-&gt;getElements()-&gt;deleteElementById(x)
</code></pre>

<h3>Twig</h3>

<pre class="lang-twig prettyprint-override"><code>{% do craft.app.getElements().deleteElementById(x) %}
</code></pre>

CC BY-SA 4.0
2019-01-24T19:58:47.047Z
Just deleting the rows in the database `elements` table doesn't remove them from the `content` table, so probably best to do it via PHP or Twig.
kmgdev
CC BY-SA 4.0
2018-08-29T07:24:06.110Z
2018-08-29T07:24:06.110Z
Robin Schambach
<p>I want to delete some of the tags that are entered in the system.</p>

<p>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 <a href="https://craftcms.stackexchange.com/questions/27492/still-not-able-to-manage-tags-in-craft-3/27499#27499">previous question</a>).</p>

<p>The only way to delete tags is in the database. So I found <a href="https://craftcms.stackexchange.com/questions/1115/how-do-i-delete-a-tag#comment1929_1118">this</a> comment. I think this is for CraftCMS 2, but is it still the same and for CraftCMS 3?</p>

CC BY-SA 4.0
2018-08-29T07:57:08.823Z
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
CC BY-SA 4.0
2018-08-29T09:13:29.550Z
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
<craft3><plugins><tags>
How to delete tags in Craft CMS 3
# How to delete tags in Craft CMS 3

(Asked by: username_0 on 2018-08-29)

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](https://craftcms.stackexchange.com/questions/27492/still-not-able-to-manage-tags-in-craft-3/27499#27499)).

The only way to delete tags is in the database. So I found [this](https://craftcms.stackexchange.com/questions/1115/how-do-i-delete-a-tag#comment1929_1118) comment. I think this is for CraftCMS 2, but is it still the same and for CraftCMS 3?

**Tags:** craft3, plugins, tags

> **Comments:**
> **username_1**: 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.  
> **username_0**: 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.  

---

## 2 answers

### Answer by username_2 on 2018-08-29. Score: 5 | Accepted answer

I do believe this plugin can help?

<https://github.com/ethercreative/tags>


---

### Answer by username_3 on 2018-08-29. Score: 5

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) %}

> **Comments:**
> **username_4**: Just deleting the rows in the database `elements` table doesn't remove them from the `content` table, so probably best to do it via PHP or Twig.  

---

