I would like to be able to programmatically delete a taxonomy term from all instances of term reference field that targets that terms vocabulary.

My reason for this is that I believe I've encountered a bug where by when I delete a taxonomy term itself, the database record for related term reference fields remains.

I've field a bug report at: http://drupal.org/node/1281114 however in the meantime before the massive drupal core machine gets around to addressing the bug, I'd like to try and solve it myself temporarily until there is a more robust and core solution.

Is there a 'correct' way to delete a taxonomy term from each instance of fields term reference using Entity API or perhaps a core function?



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.