Closed (outdated)
Project:
Taxonomy Manager
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Nov 2007 at 16:18 UTC
Updated:
27 Jun 2025 at 12:21 UTC
Jump to comment: Most recent
Comments
Comment #1
momper commented+1
is there a possibility to delete all terms of a vocabulary at once?
thanks momper
Comment #2
wwwoliondorcom commentedOr maybe juste delete the orphans terms ? (without a node)
Thanks,
Comment #3
francewhoa+1 for this feature in Taxonomy Manager.
@wwwoliondorcom: The module 'delete_orphaned_terms' can do that http://drupal.org/project/delete_orphaned_terms
The down side of delete_orphaned_terms is that it might run out of memory with very large taxonomy.
Comment #4
giorgio79 commentedSee this as well
http://drupal.org/node/537418
Comment #5
zoo commentedHello developers and thank You for this precious module!
I also agree the feature requested would be very helpful.
Bye
zoo
Comment #6
scotjam commentedI'm interested to know if its possible to selects all terms of a vocabulary at once. I too am looking for a quick way of deleting all terms.
thanks
scotjam
Comment #7
scotjam commentedFound an interim solution. Use firefox together with add-ons (either)
1. CheckFox https://addons.mozilla.org/en-US/firefox/addon/2393/ (tested and it works)
or
2/ CheckBoxMate https://addons.mozilla.org/en-US/firefox/addon/9740/ (doesn't work on my firefox version)
Hope this helps
scotjam
Comment #8
zoo commentedHello scotjam,
I don't have right now the time to try your solution but I just wanted to thank you for sharing, this is support! well done.
Bye
zoo
Comment #11
drupaldev@assyst commentedI think following code will help you.
$tree = taxonomy_get_tree($vid);
foreach($tree as $key => $val){
taxonomy_term_delete($val->tid);
}
Comment #12
Max_Headroom commented#11
taxonomy_term_delete is only from Drupal 7.
Comment #13
mery28 commentedHi,
I'm using "Generate terms" from the Devel module (in drupal 7). I generate 0 terms and check "Delete existing terms in specified vocabularies before generating new terms."
Maria
Comment #14
quickly commented#13 works great! Thanks @mery28 for the clever solution
Comment #15
Taxoman commentedIsn't there also a need to clean up the nodes that are using the terms before removing terms?
It would be great with:
a) DETECT (first) and LIST all current nodes that point to taxonomy terms that are missing (gone/already deleted), with options to either re-create the term, update the nodes to drop that term(s), or replace the orphan term pointer with a new (existing, or created-on-the-fly) term...
b) possibility to delete all terms in a vocab, with option to skip terms already used by nodes, or auto-update all affected nodes with either removing that term, or replacing it with another term. (All such node updates should be done without affecting the updated timestamp of the affected nodes.)
c) DETECT (first) and LIST all orphaned taxonomy terms, and then be allowed to delete all or some of those, and/or option to re-attach (some of) them, either to new parent with original name (create on-the-fly), or new parent with new name
d) option to delete all nodes that fits a multi-term filter (or offer a UI for that, with a dependency on Views_Bulk_Operations, which then can provide even more options as of what to do with those nodes)
(These features will make this module truly live up to its name; "T... MANAGER"...)
EDIT:
(PS. sometimes "orphaned" reflects child terms with missing parents in hierarchical vocabularies, not only terms that are not used by any nodes)
Comment #16
Taxoman commentedComment #17
mh86 commentedWell, not only nodes can have terms associated with (which makes this topic more complex).
If you are interested in a "select all" functionality, please take a look at #1301094: Taxonomy Manager: Add a 'Select all' feature.
Comment #18
sa3z commented#13 worked great for me as well. Thanks Maria!
Comment #19
kenorb commentedRelated:
http://drupal.stackexchange.com/questions/76078/how-to-delete-all-terms-...
http://drupal.stackexchange.com/questions/38275/how-to-delete-all-terms-...
Comment #20
summit commentedHi, #13 was great! saved me from all that clicking, thanks!
greetings, Martijn
Comment #21
firebird commentedI've created a module for this: https://drupal.org/project/taxonomy_delete_all_terms .
If the developers of Taxonomy Manager want to merge the functionality of Taxonomy Delete All Terms to their module, I can make mine obsolete.
Comment #22
afinnarn commentedI think this is a good idea to move https://drupal.org/project/taxonomy_delete_all_terms into the module.
Comment #23
jeetendrakumar commentedYou can also use https://www.drupal.org/project/taxonomy_multidelete_terms module to delete taxonomy terms.
Comment #24
rooby commentedI see no reason why you should have to use another module since this module is supposed to handle taxonomy management tasks.
It could work similarly to views bulk operations where if you use select all you then get an option to select all on all pages.
Comment #25
vladimirausThank you for contribution. 👍
Drupal 7 is no longer supported. 🤷♂️
Closing as outdated. 🔐