# Unable to delete all terms in a taxonomy

**URL:** <https://tainacan.discourse.group/t/unable-to-delete-all-terms-in-a-taxonomy/2879>\
**Category:** Erros\
**Created:** [Outubro 21, 2026, 3:44pm UTC](https://tainacan.discourse.group/t/unable-to-delete-all-terms-in-a-taxonomy/2879 "2026-10-21T15:44:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![robnicholson](https://yyz2.discourse-cdn.com/free1/user_avatar/tainacan.discourse.group/robnicholson/32/3755_2.png) [@robnicholson](https://tainacan.discourse.group/u/robnicholson)\
**Post date:** [Outubro 21, 2026, 3:44pm UTC](https://tainacan.discourse.group/t/unable-to-delete-all-terms-in-a-taxonomy/2879/1 "2026-10-21T15:44:55Z")

</div>

Currently doing lots of experimentation and importing existing taxonomy from an existing system. Therefore I wanted to delete all the existing terms ahead of importing again. However, when I select all root items, click “Actions for the section: Delete permanently” → Remove only the selected items (there are no child items), I get the error:

```auto
Error 400!
The server could not understand the request due to invalid syntax. This is possibly an issue with Tainacan and should be reported to its developers.

Request details: /taxonomy/3052/terms/?permanently=1&hideempty=0&number=0&parent=0&delete_child_terms=true&_method=DELETE

```

I tried again with “Remove terms and their descendants” with same error. I can workaround for now by deleting the entire taxonomy and re-creating it.

---

<div class="post-metadata">

**Author:** ![mateus.m.luna](https://yyz2.discourse-cdn.com/free1/user_avatar/tainacan.discourse.group/mateus.m.luna/32/3_2.png) [@mateus.m.luna](https://tainacan.discourse.group/u/mateus.m.luna)\
**Post date:** [Outubro 21, 2026, 7:07pm UTC](https://tainacan.discourse.group/t/unable-to-delete-all-terms-in-a-taxonomy/2879/2 "2026-10-21T19:07:53Z")

</div>

Hi @robnicholson!

Yeah this was reported recently in [here](https://tainacan.discourse.group/t/exclusao-em-lote-de-termos-de-taxonomia-falha-acima-de-199-itens/2873/2). The error message is not clear at all, it should explain that you are limited to editing max 400 terms at once. We will improve that. But the limit will remain, that operation is not a real bulk editing operation like Items Bulk Editing so it cannot run all at once without risking to overload your server. If you feel confident to execute it for higher values you can configure a constant in wp-config.php named ``TAINACAN_API_MAX_BATCH_TERMS`.

---

<div class="post-metadata">

**Author:** ![robnicholson](https://yyz2.discourse-cdn.com/free1/user_avatar/tainacan.discourse.group/robnicholson/32/3755_2.png) [@robnicholson](https://tainacan.discourse.group/u/robnicholson)\
**Post date:** [Outubro 21, 2026, 10:18pm UTC](https://tainacan.discourse.group/t/unable-to-delete-all-terms-in-a-taxonomy/2879/3 "2026-10-21T22:18:48Z")

</div>

Thanks for the explanation. I’m afraid that as many of the posts are in Portuguese, there’s a risk I’ll duplicate questions as when Discourse pops up with the “Similar posts”, the translate function in Edge doesn’t work.

I assume that the import function appends taxonomy items to the list. A wish would be a switch to delete all items before the import.

---

<div class="post-metadata">

**Author:** ![mateus.m.luna](https://yyz2.discourse-cdn.com/free1/user_avatar/tainacan.discourse.group/mateus.m.luna/32/3_2.png) [@mateus.m.luna](https://tainacan.discourse.group/u/mateus.m.luna)\
**Post date:** [Outubro 22, 2026, 12:57pm UTC](https://tainacan.discourse.group/t/unable-to-delete-all-terms-in-a-taxonomy/2879/4 "2026-10-22T12:57:15Z")

</div>

> [@robnicholson](#):
>
> Thanks for the explanation. I’m afraid that as many of the posts are in Portuguese, there’s a risk I’ll duplicate questions as when Discourse pops up with the “Similar posts”, the translate function in Edge doesn’t work.

No worries about that!

> [@robnicholson](#):
>
> I assume that the import function appends taxonomy items to the list. A wish would be a switch to delete all items before the import

We’re currently working on a new Taxonomies CSV Importer which will allow updating via CSV just like we do for items… I guess we can discuss ways to add bulk processing to terms there too, will bring that to the table.
