Create a textlabel or remove with a function

Hello, i I would like to know how to add and remove a textlabel or any other component by a function or a button in Kotlin

Thank you very much

Federico