That this commandment of erasing the memory of Amalek is about us healing ourselves from the pain and perspective that the suffering we experienced during our long exile was random and senseless. We express this sentiment each day at the close of the Amidah prayer which says:
וְכָל־הַחוֹשְׁבִים עָלַי רָעָה, מְהֵרָה הָפֵר עֲצָתָם וְקַלְקֵל מַחֲשַׁבְתָּם: יִהְיוּ כְּמֹץ לִפְנֵי רוּחַ וּמַלְאַךְ יְיָ דּוֹחֶה. לְמַעַן יֵחָלְצוּן יְדִידֶיךָ
That this too was part of G-d’s plan from the very beginning of Creation and was only for good. That like we learn in connection with the commentary of the Chida to the Maggid section of the Haggadah, that the opposite of good does not descend from Above.