Setting a password on your iphone and then erasing the data after ten wrong passwords means restoring your iphone to factory settings.
The operation of setting password is as follows:
First step: click "Settings" icon on desktop.
Step 2: Open "General" and select "Password Lock".
The third step is to click "Open Password" and enter your own password to complete the process.