What is the command line equivalent of "Reset disk image"?

When I want to remove everything (running or not), I can just go to Preferences > Reset and hit the Reset disk image button. This would remove all docker data, without resetting settings to factory defaults. Is there a single line command to achieve same thing?

P.S.: I know about docker system prune, but it is not exactly the same. I want to reset everything, not just the unused.

Source: StackOverflow