Yahweh describes himself as a warrior bearing a sword. The phrase "drunk its fill" speaks of Yahweh's sword as if it were a person who has eaten and become satisfied. Yahweh uses this imagery to emphasize that there will be a lot of destruction in heaven and to state its completion. Alternate translation: "when I am finished destroying things in heaven" (See: [[rc://en/ta/man/translate/figs-metaphor]] and [[rc://en/ta/man/translate/figs-personification]])
The word "it" refers to Yahweh's sword. This continues the metaphor about Yahweh destroying things with a sword. Alternate translation: "I will come to punish the people of Edom, the people whom I have set aside for me to destroy" (See: [[rc://en/ta/man/translate/figs-metaphor]])