My mother got rid of her sleep apnea and off the CPAP through weight loss. I know others who have stopped it and stopped snoring through weight loss.
Not saying you shouldn't use the machine if you need it, but definitely is a factor that should be looked at if you're diagnosed with sleep apnea or even a heavy snorer who doesn't get restful sleep (which was me years ago). It makes a HUGE difference.
I wish this was true in all cases. I lost almost 30 lbs 2 years ago in an attempt to get rid of OSA, but my diagnosis actually went from moderate/mild to moderate/severe on my sleep study. 30lbs doesn't sound like a lot, but i was at 155 lbs after that weight loss. I was too skinny honestly. I was determined to get rid of it, as i was embarrassed to be 30 years old and using a CPAP, but i can honestly say i've had OSA since my early 20's if not teen years.
I'm currently at 180-ish and just embrace my CPAP now. I sleep so much better with it.