Using MSDeploy to update and remove sections in web.config. A simple example

I got a case the other day where customer was using Microsoft Web Deploy 3.0.   “Web Deploy 3.0”   There were 3 questions around this. . How to change the value of some settings for their site in the web.config. . How to remove or delete a whole section in the web.config. ….