Skip to main content
removed the link to the duplicate question, which has been merged with this one
Source Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

You can use the following command:.

drush -v eval 'foreach(taxonomy_get_tree(123) as $term) { taxonomy_term_delete($term->tid); }'
drush -v eval 'foreach(taxonomy_get_tree(123) as $term) { taxonomy_term_delete($term->tid); }'

If it doesn't work, make sure that you clear your cache (e.g. memcached).

OrA faster way byis using the following dirty SQL query:

drush sqlq "DELETE FROM taxonomy_term_data WHERE vid = 123"

Where 123, where 123 is yourthe ID of the vocabulary id which you should change.

drush sqlq "DELETE FROM taxonomy_term_data WHERE vid = 123"

You can get the vid of yourvid from the vocabulary name bywith the following command:

drush sqlq "SELECT name, vid FROM taxonomy_vocabulary WHERE name = 'vocabulary_name'"

See also:.

drush sqlq "SELECT name, vid FROM taxonomy_vocabulary WHERE name = 'vocabulary_name'"

You can use the following command:

drush -v eval 'foreach(taxonomy_get_tree(123) as $term) { taxonomy_term_delete($term->tid); }'

If it doesn't work, make sure that you clear your cache (e.g. memcached).

Or faster way by using the following dirty SQL query:

drush sqlq "DELETE FROM taxonomy_term_data WHERE vid = 123"

Where 123 is your vocabulary id which you should change.

You can get vid of your vocabulary name by the following command:

drush sqlq "SELECT name, vid FROM taxonomy_vocabulary WHERE name = 'vocabulary_name'"

See also:

You can use the following command.

drush -v eval 'foreach(taxonomy_get_tree(123) as $term) { taxonomy_term_delete($term->tid); }'

If it doesn't work, make sure that you clear your cache (e.g. memcached).

A faster way is using the following dirty SQL query, where 123 is the ID of the vocabulary you should change.

drush sqlq "DELETE FROM taxonomy_term_data WHERE vid = 123"

You can get the vid from the vocabulary name with the following command.

drush sqlq "SELECT name, vid FROM taxonomy_vocabulary WHERE name = 'vocabulary_name'"
replaced http://drupal.stackexchange.com/ with https://drupal.stackexchange.com/
Source Link

You can use the following command:

drush -v eval 'foreach(taxonomy_get_tree(123) as $term) { taxonomy_term_delete($term->tid); }'

If it doesn't work, make sure that you clear your cache (e.g. memcached).

Or faster way by using the following dirty SQL query:

drush sqlq "DELETE FROM taxonomy_term_data WHERE vid = 123"

Where 123 is your vocabulary id which you should change.

You can get vid of your vocabulary name by the following command:

drush sqlq "SELECT name, vid FROM taxonomy_vocabulary WHERE name = 'vocabulary_name'"

See also:

You can use the following command:

drush -v eval 'foreach(taxonomy_get_tree(123) as $term) { taxonomy_term_delete($term->tid); }'

If it doesn't work, make sure that you clear your cache (e.g. memcached).

Or faster way by using the following dirty SQL query:

drush sqlq "DELETE FROM taxonomy_term_data WHERE vid = 123"

Where 123 is your vocabulary id which you should change.

You can get vid of your vocabulary name by the following command:

drush sqlq "SELECT name, vid FROM taxonomy_vocabulary WHERE name = 'vocabulary_name'"

See also:

You can use the following command:

drush -v eval 'foreach(taxonomy_get_tree(123) as $term) { taxonomy_term_delete($term->tid); }'

If it doesn't work, make sure that you clear your cache (e.g. memcached).

Or faster way by using the following dirty SQL query:

drush sqlq "DELETE FROM taxonomy_term_data WHERE vid = 123"

Where 123 is your vocabulary id which you should change.

You can get vid of your vocabulary name by the following command:

drush sqlq "SELECT name, vid FROM taxonomy_vocabulary WHERE name = 'vocabulary_name'"

See also:

deleted 39 characters in body
Source Link
kenorb
  • 14.3k
  • 10
  • 98
  • 168

You can use the following command:

drush -v eval 'foreach(taxonomy_get_tree(123) as $term) { taxonomy_term_delete($term->tid); }'

If it doesn't work, then it could have somemake sure that you clear your cache problem with caching(e.g. memcached).

Or faster way by using the following dirty SQL query:

drush sqlq "DELETE FROM taxonomy_term_data WHERE vid = 123"

Where 123 is your vocabulary id which you should change.

You can get vid of your vocabulary name by the following command:

drush sqlq "SELECT name, vid FROM taxonomy_vocabulary WHERE name = 'vocabulary_name'"

See also:

You can use the following command:

drush -v eval 'foreach(taxonomy_get_tree(123) as $term) { taxonomy_term_delete($term->tid); }'

If it doesn't work, then it could have some problem with caching.

Or faster way by using the following dirty SQL query:

drush sqlq "DELETE FROM taxonomy_term_data WHERE vid = 123"

Where 123 is your vocabulary id which you should change.

You can get vid of your vocabulary name by the following command:

drush sqlq "SELECT name, vid FROM taxonomy_vocabulary WHERE name = 'vocabulary_name'"

See also:

You can use the following command:

drush -v eval 'foreach(taxonomy_get_tree(123) as $term) { taxonomy_term_delete($term->tid); }'

If it doesn't work, make sure that you clear your cache (e.g. memcached).

Or faster way by using the following dirty SQL query:

drush sqlq "DELETE FROM taxonomy_term_data WHERE vid = 123"

Where 123 is your vocabulary id which you should change.

You can get vid of your vocabulary name by the following command:

drush sqlq "SELECT name, vid FROM taxonomy_vocabulary WHERE name = 'vocabulary_name'"

See also:

added 118 characters in body
Source Link
kenorb
  • 14.3k
  • 10
  • 98
  • 168
Loading
added 174 characters in body
Source Link
kenorb
  • 14.3k
  • 10
  • 98
  • 168
Loading
added 13 characters in body
Source Link
kenorb
  • 14.3k
  • 10
  • 98
  • 168
Loading
Source Link
kenorb
  • 14.3k
  • 10
  • 98
  • 168
Loading