מִצְוַת עֲשֵׂה הִיא לְאַבֵּד עֲבוֹדַת כּוֹכָבִים וּמְשַׁמְּשֶׁיהָ וְכָל הַנַּעֲשֶׂה בִּשְׁבִילָהּ שֶׁנֶּאֱמַר (דברים יב ב) "אַבֵּד תְּאַבְּדוּן אֶת כָּל הַמְּקוֹמֹת" וְנֶאֱמַר (דברים ז ה) "כִּי אִם כֹּה תַעֲשׂוּ לָהֶם" וְגוֹ'. וּבְאֶרֶץ יִשְׂרָאֵל מִצְוָה לִרְדֹּף אַחֲרֶיהָ עַד שֶׁנְּאַבֵּד אוֹתָהּ מִכָּל אַרְצֵנוּ. אֲבָל בְּחוּץ לָאָרֶץ אֵין אָנוּ מְצֻוִּין לִרְדֹּף אַחֲרֶיהָ אֶלָּא כָּל מָקוֹם שֶׁנִּכְבּשׁ אוֹתוֹ נְאַבֵּד כָּל עֲבוֹדַת כּוֹכָבִים שֶׁבּוֹ. שֶׁנֶּאֱמַר (דברים יב ג) "וְאִבַּדְתֶּם אֶת שְׁמָם מִן הַמָּקוֹם הַהוּא". בְּאֶרֶץ יִשְׂרָאֵל אַתָּה מְצֻוֶּה לִרְדֹּף אַחֲרֵיהֶן וְאִי אַתָּה מְצֻוֶּה לִרְדֹּף אַחֲרֵיהֶן בְּחוּץ לָאָרֶץ:
It is a positive commandment to destroy false deities, all their accessories, and everything that is made for their purposes, as [Deuteronomy 12:2] states: "You shall surely destroy all the places [where the gentiles... served their gods]" and, as [implied by Deuteronomy 7:5]: "Rather, what you should do to them is tear down their altars." In Eretz Yisrael, the mitzvah requires us to hunt after idol worship until it is eradicated from our entire land. In the diaspora, however, we are not required to hunt after it. Rather, whenever we conquer a place, we must destroy all the false deities contained within. [The source for this distinction is Deuteronomy 12:3, which] states: "And you shall destroy their name from this place," [implying that] you are obligated to hunt false deities in Eretz Yisrael, but you are not obligated to do so in the diaspora.
