A senior Polish Communist Party official has called for a major purge of the party and trade unions to remove what was described as the danger to socialism in Poland.

Jerzy Urbanski, the head of the party's control commission, said that the party should use the period of martial law to strengthen itself ideologically and politically.

His remarks, which included a demand for the formation of a "renewed trade-union movement" purged of antisocialism, were reported in today's issue of the Communist Party newspaper, Trybuna Ludu. They were made to a meeting of regional party officials.

Since the declaration of martial law Dec. 13, the Communist Party has maintained a low profile. Day-to-day decisions have been made by an informal group made up of senior Army generals and politicians--and the Communist Party apparatus has lost much of its influence.

Urbanski's speech makes clear the party hierarchy regards the military takeover as an interlude during which it will cleanse its own ranks in preparation for reassuming a leading role. The party's democratic statutes, adopted at the extraordinary party congress in July 1981, have been suspended, allowing the leadership to exercise strict control over the rank and file.

Meanwhile, confidential party documents have come to light indicating that the process of "ideological verification" of members is already under way. Individuals are being called before teams of party officials to state their attitude toward the imposition of martial law and toward the independent trade union federation, Solidarity. A similar purge has been conducted among Polish journalists and officials of the government. In some cases, people who have refused to sign pledges stating that they will resign from Solidarity have been dismissed.

A confidential resolution passed by the party branch in the Warsaw suburb of Wolo said decisions whether to expel members on the basis of personal interviews should be taken by Jan. 20.

Party membership is already believed to have fallen sharply as a result of mass resignations following the declaration of martial law. According to some estimates, it has dropped from 3 million members to fewer than 2 million.

In his speech, Urbanski said that the speed with which Poland emerges from its political and economic crisis depends on the "ideological uniformity" of the party and its ability to regain the peoples' trust. "No other body can replace the party," he added in an apparent attempt to squelch suggestions that the ruling Military Council for National Salvation may be unwilling to give up power.

Urbanski added that "enemies of socialism" should be eliminated from the managing boards of trade unions. "Otherwise, there is a real danger that everything will go back to the way it was before," he said.

The Wolo resolution, which appeared to be based on instructions from the ruling Politburo, said the main task of party members was to drum up support for the military council and reactivate the party itself.

The resolution made clear that rank-and-file party members were obliged to obey instructions from above without question. Propaganda work should concentrate on emphasizing "the positive effects of martial law," including improvement in law and order and the fight against corruption and speculation, it said.