Mayor Marion Barry, under pressure from several sectors of the community, has decided to remove James W. Baldwin as director of the D.C. Office of Human Rights, accordng to sources in the Barry administration.

Ivanhoe Donaldson, Barry's general assistant, said yesterday that "serious consideration" was being given to replacing Baldwin as the person responsible for enforcing the city's antidiscrimination codes."He hasn't enforced Title 34 (the Human Rights law) very effectively," Donaldson said.

Donaldson said Baldwin, who was not invited to a briefing of department and agency heads yesterday, was "under evaluation." Asked if Baldwin were likely to stay with the new administrtion, Donaldson said, "I don't think so."

Baldwin said yesterday that he has not been notified of any such plans and was not invited because his agency is not among the 16 top level departments under a realignment plan begun by Barry earlier this week.

Several groups, including gay rights advocates who were strong supporters of Barry, have asked removal of the 54-year-old OHR director, who has held the post since 1970.

Baldwin was not among allegedly incompetent department heads listed by Barry during his campaign as persons to be removed if Barry were elected.

Meanwhile, the mayor's ofice announced the appointment yesterday of Alan F. Grip, a former radio news reporter and City Council staff employe, as director of the city's newly created Office of Communications.

The communications office will prepare and distribute press releases for municipal agencies, prepare brochures and other materials and conduct other informational activities.

Under former Mayor Walter E. Washington, the communications office's predecessor, the Office of Public Affairs, doubled as the mayor's press office. Under Barry, the roles will be split, with Florence Tate serving as press secretary.

Samuel T. Eastman, who had been director of the public affairs office, has been reassigned as a special assistant to the deputy director of the Department of Human Resources.

Grip was a reporter for radio station WTOP before becoming special assistatnt to former City Council Chairman Sterling Tucker.

In discussing other personnel matters, Tate reported that Joseph P. Yeldell is continuing on unpaid leave as general assistant to the mayor, a post to which he was appointed by Washington. Yeldell was convicted last year of birbery and conspiracy, but the verdict was set aside and he faces a second trial along with millionaire developer Dominic Antonelli.