How to erase factory reset an Iphone 8 without password?

I bought an iphone 8 when i was drunk and just now found it. I don't have the icloud account or phone password and want to factory reset it to sell it to my friend who wanted it. Does anyone know how to wipe it?

IPhones are locked down so much that even the FBI can't unlock them. They can't be bypassed. You have a worthless paper weight. People who say they can unlock them are scammers.

Phone is probably stolen, which why it is impossible to unlock it.

ICloud lock is an anti-theft feature. An anti-theft system would be rather useless if you can easily bypass it. As a result, there's NO way to bypass iCloud.

A factory restore will not remove the Activation Lock, you must have the previous owner's Apple ID and password. If you can figure out what your email address was then you should be able to get the rest.

There's no way to do that, by design.

Not sure if you bought the phone & it came with Activation Lock or its yours & you can't remember the password but again either way you can't do it like that.

By using Coolmuster iOS Eraser, you can easily erase factory reset an Iphone 8 without password. And the erased data can't be recovered any more. If you want to get them back, you'd better backup them before that.