Thank you, Peter, for your prompt reply!
I know that WordPress doesn't trash the terms; it deletes them directly. I only mentioned that as a possible reason that the term metadata is not being deleted from the custom table after deleting the term itself.
I will rephrase my question; I have a custom taxonomy that has some custom fields stored in a Custom Table; when I delete a term of that taxonomy, the row that stores the metadata of the deleted term is not being deleted from the custom table.
I tried the same custom taxonomy and fields without using the custom table, and I found that the metadata stored in the default wp_termmeta
table is deleted automatically when the term is deleted.
So, there's an issue with the MB Custom Table plugin; it doesn't handle deleting the metadata of the deleted term. And I think it's something that the plugin should take care of because it's the natural behavior of WordPress to delete the metadata of the deleted term.
I hope my question is clear now.