Removing a created TextField

I used _root.createTextField(“name”, …);
At some point i want to remove it but even though the following code exists in the AS dictionary, it won’t work:

name.removeTextField();

The only thing i can do is change to name.text = “”; to make it disappear.

Does anyone know how to actually remove it?

Thanks,
Jtax