How do you hide a sprite in codea?

I have no idea

You could either just not draw it in the draw loop (best solution) or makes it transparent (i.e. alpha = 0), in which case you would still be drawing it but it would be invisible.

Or you could draw it off the screen! @reefwing 's suggestion with not even drawing it is the best solution.

Codea redraws the screen 60 times a second, so anything you put there doesn’t stay there unless you keep redrawing it.

So hiding a sprite is as simple as just not deciding to draw it, as reefwing says

Can be a little confusing for anyone coming from an OO based game environment where Sprites are objects with a life of their own that can be programmed to move and alter between frames.

In Codea the sprite function means to copy an image from a file or an Image object onto the screen.