How can I reset the locking screen on my iPhone 5s and iPhone 6

I forget the screen password how can I reset it on my iPhone 6+ and on my iPhone 5s
Connect the device to your computer and then restore it via iTunes. There's no other way.
once you restore via iTunes, you will still need your Apple ID and password to set up.

Original thread: https://forums.imore.com/threads/how-can-i-reset-the-locking-screen-on-my-iphone-5s-and-iphone-6.364820/