In this article I am giving you an introduction on SPWebApplication class. Most of the developers are naive about this class definitely this will give an introduction on the class The SPWebApplication objects represents a SharePoint Web Application, which essentially is an IIS virtual server. Using this class we can do some high level operations. Please find some of the actions you can perform.
Below is a small example to delete a web application