GUATEMALA CITY (AP) — A Guatemalan court has ordered the foreign ministry to withdraw an admonition warning the head of a U.N. anti-corruption commission to "refrain from interfering in the internal affairs" of the country.

The ministry made the warning to Ivan Velazquez in a letter this week in which it renewed his visa for one year.

The Constitutional Court said Wednesday a diplomatic note could not restrict the commission's work.

President Jimmy Morales tried to expel Velazquez in August but the court blocked that order.

The U.N. panel and local prosecutors have built popularity among Guatemalans over the last decade by attacking the corruption endemic in the country, including helping force the previous president from office two years ago.

Morales and his relatives have also been implicated in corruption or illegal campaign financing.