How do I temporary hide corridor geometry?

I have the following code for my corridor geometry:

                            name: "Corridor ",
                            corridor: {
                                positions: Cesium.Cartesian3.fromDegreesArray(outcoordarr),
                                height: showheight,
                                extrudedHeight: heightfromground,
                                cornerType: Cesium.CornerType.BEVELED,
                                width: 1.0,
                                material: heightcolor

How can I hide this geometry temporarily? I am using the following code:;

When you do viewer.entities.add it returns an entity. You can set the .show property to true/false on that entity.