Disable layer without removing it?

Is there a way to disable a layer so it doesn’t get published to the SWF without deleting it entirely? It seems like even if I hide the layer, it still publishes. I don’t want to delete a chunk of work until I am sure I don’t need it anymore.