about remove object on screen

follow start example 

playBtn = widget.newButton{

        label=“Play Now”,

    }

    playBtn:setReferencePoint( display.CenterReferencePoint )

    playBtn.x = display.contentWidth*0.5

    playBtn.y = display.contentHeight - 125

    

    – all display objects must be inserted into group

    group:insert( playBtn )

i need to remove  playBtn only  

how can remove it  without screen ?

and a little if i need to hidden playBtn 

how can hidden playBtn?

Thank you

you should be able to use the following to remove it

playBtn:removeSelf() playBtn = nil

To hide it you can use.

playBtn.alpha = 0 

you should be able to use the following to remove it

playBtn:removeSelf() playBtn = nil

To hide it you can use.

playBtn.alpha = 0