Sugary drinks will be removed from the menu at all NSW hospitals and health facilities under a range of measures to combat obesity.

The NSW government will become the first state in Australia to apply a blanket ban on its hospital cafes, staff kiosks, vending machines and catering services from selling sugar-sweetened beverages with no nutritional value, such as Coke and Pepsi.

The restriction is part of NSW Health's new "Healthy Choices in Health Facilities" policy framework, which also limits the amount of junk food that can be sold to 25 per cent of a cafeteria or vending machine's offerings and requires most food to have a health star rating of 3.5 or above.

"We are working toward a 5 per cent reduction in overweight and obesity rates in adults by 2020 and there's no better way to start than right here on our own doorstep," said NSW Chief Health Officer Dr Kerry Chant in a statement.