How does a glacier accomplish erosion?

The glacier is melting on the mountain and underneath it is like a river which eroding a side of the mountain when the glacier melts enough, it will slide down the mountain and into the lake that the river underneath the glacier had created.

Hope this helps :)