Unable to delete unwanted docker images

I want to remove all the unwanted docker images and containers from my system’s C: drive. Currently system running out of memory. I had used the commands but it’s showing the following error:

error during connect: Post dial tcp connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

How do I resolve it?
enter image description here


Source: StackOverflow