remove button

Hi, how can i delete the UI button?
The code nameOfButton:removeSelf() doesn’t works properly.
[import]uid: 30837 topic_id: 7490 reply_id: 307490[/import]

myButton:removeSelf()
myButton = nil

Should work, UNLESS you have some other variable referencing that object somewhere else in your code. [import]uid: 7849 topic_id: 7490 reply_id: 26561[/import]

it seems doesen’t work for me, i should remove all object when i press some a button
Here i have the sample code, can you help me?
http://cl.ly/1f36451v0q230W2O3R2n [import]uid: 30837 topic_id: 7490 reply_id: 26579[/import]