All charges against one of the police officers accused of raping a woman while on duty in central Queensland have been dropped, with the other officer indicted.

The men, 29 and 31, were committed to stand trial in December, each charged with five counts of rape and one count each of assault with intent to commit rape and deprivation of liberty.

One police officer has been indicted on five counts of rape while all charges against the other have been dropped.

They were accused of raping a woman while on duty in Mackay in February.

The Director of Public Prosecutions dropped all charges against the younger officer on June 2.