# Hoe kan ik een tag verwijderen in de ontwikkeldatabase (lokaal)?

**URL:** <https://meta.discourse.org/t/how-can-i-delete-a-tag-in-development-database-on-local/161797>\
**Category:** Product Support\
**Created:** [23 augustus 2020 om 06:53 UTC](https://meta.discourse.org/t/how-can-i-delete-a-tag-in-development-database-on-local/161797 "2020-08-23T06:53:26Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [24 augustus 2020 om 17:07 UTC](https://meta.discourse.org/t/how-can-i-delete-a-tag-in-development-database-on-local/161797/2 "2020-08-24T17:07:07Z")

</div>

To delete a tag from the Rails console, try:

```plaintext
t = Tag.find_by_name('<your_tag_name>')
t.destroy!

```

Calling `destroy!` instead of `delete` in the last command will clean up all records on the site that are associated with the removed tag.

---

_[View the full topic](https://meta.discourse.org/t/how-can-i-delete-a-tag-in-development-database-on-local/161797)._
