I am trying to delete all the information and data in my iphone and its asking for a passcode which I have never set. I do have a passcode to get into my phone but it doesn't work on "Deleting data" ***
Restore the phone in iTunes, using the last computer you synced with, or put phone in recovery mode and use any computer. For info on recovery mode, see this:
iPhone and iPod touch: Unable to restore
Retrieving data ...