How can I erase the history of passcodes on the iPhone4?

Unless you're willing to jailbreak your only option is talk to your company's administrator. That policy is indeed enforced by the company, but maybe you're lucky and the responsible did it without caring too much about it. Anyways...

For changing the policy, try starting here.

For removing the policy with jailbreak, you'll have to read a lot.

If you your Hit Points are below zero, go to page 39. (joking)


Many times password policies like this are enforced by looking at the most recent N passwords. For example, if a company requires changing your password every month, they may look at the last 12 passwords. I can't say for sure how it is implemented with the iPhone.

A simple trick to get around this is to change your password N times so that the password you want gets knocked off the list and you can use it again. If you don't know what the rule is and how many recent passwords are stored, it may take some trial and error.