How to clear everything from iPhone with a broken screen?

I got my phone wet so now the screen is almost completely black. I'm getting a new phone anyways since the screen is also shattered. I know I'm clumsy, there's no need to point it out. I can still unlock my phone, but I obviously can't see anything I'm doing once I'm in. Is there any way I can completely clear my phone without doing it directly from the settings?

Added (1). And the screen can also be used (like to type of whatever), it's just black.

Are you signed in to "Find My iPhone"? You can remote-wipe it from your iCloud.com account.

Or, put it into Recovery Mode and erase it while plugged in to iTunes.

Use a computer & iTunes.