For what reason will you want to delete all the contents on your iPhone? You may want to sell it on eBay, trade it through a store, give it to your friend, or donate it to charity. Whatever the situation is, clearing up all the data stored on the device is necessary, as you won't like your SMS...