I answered the question: Is there a way to completely wipe out iPhone data programatically?
Here is my answer: Is there a way to completely wipe out iPhone data programatically?
Please can somebody explain, what is the problem with it? I would appreciate, if it will be undeleted and I can modify it to make acceptable.
The text of answer is following:
There is a private API SBDataReset in SpringboardServices private framework. It wipes all data.
You can check following code for example how to use it.
Application which uses this API should have "com.apple.springboard.wipedevice" entitlement to work.