******** U N S U P P O R T E D ********
One of the most common issues for POCs, load testing, or demo machines is that users cannot be deleted and then recreated in OIM.
The code on https://gist.github.com/marcofanti/5586995 contains a Java program that takes 3 parameters: database URL, database user name, and database password.
If the connection to the OIM database is successful the program will remove all the deleted users in the database, with the exception of “XELSYSADM”, “XELOPERATOR”, “OIMOPERATOR” and “WEBLOGIC”.
It will not delete Audit records (UPA* tables).
It will not remove accounts.
It will not remove user proxies.
As stated several times, this is just for test environments. It is not supported.