Was give the phone of a former employee to replace my broken one but it has a passcode.
How do you reset the passcode in order to wipe an iphone 5S?
iPhone 5sWelcome to iMore! Your only option is to restore the device in recovery mode using iTunes. Hopefully the former employee signed out of his or her Apple ID or you'll need to have the email address and password associated with that Apple ID.
https://support.apple.com/en-us/HT204306
https://support.apple.com/en-us/HT204306
Original thread: https://forums.imore.com/threads/how-do-you-reset-the-passcode-in-order-to-wipe-an-iphone-5s.367404/