Hi! need info about iphone 6

I need information!
"I would like to know if I have an iphone 6 with the IOS 9.2 and with code of the keyboard on the phone that I don’t know him. If i am passing this code with this box mfc after i can delete icloud account from the phone? If it can delete, delete 100%?
Thank you.