This question already has an answer here:
I have two switches at the bottom of my stairs in the basement. One switch is a three way to the switch at the top of my stairs. The other switch lights a series of lights all connected to the same circuit. One of those lights is in the pantry and what I would like to do is isolate that light from the rest by adding a single pole switch to the room. The switch at the bottom of the stairs would still light up the rest of the lights.