delivered the opinion of the court.
The substance of the relief asked for is that a promotion examination for assistant superintendent of police be set aside on account of certain alleged irregularities. These are said to be, (1) throwing the examination open to captains when under the rules it should have been open to inspectors only, since the latter are next lower in rank to an assistant superintendent of police,' (2) that the mayor, who appoints and can remove the commissioners, brought undue influence to bear upon them and the examiners in the matter of marking to the advantage of Herman F. Schuettler, then a captain of police, (3) that other applicants were under surveillance at the examination while Schuettler was not, and the latter was informed a month in advance that certain tests were to be used in the examination and availed himself of the information which was not given to others.
We find no error in the action of the Circuit Court expunging certain parts of the petition, including a part of the prayer for relief. It is proper to expunge such portions of pleadings as are superfluous and immaterial, not subject to special demurrer and which if traversed by plea or answered would raise false issues. Stover Mfg. Co. v. Millane,
The principal contention of counsel for plaintiff in error is that captains not being members of the next lower rank were not eligible to the examination for promotion to the position of assistant superintendent of police when there were inspectors taking the examination, and that therefore the examination may be set aside by writ of mandamus, because it is said the writ will issue to compel the performance of an official act in a proper manner, citing Van Dorn v. Anderson,
Section 454 of the Act to regulate the civil service of cities (R. S. chap. 24) contains the provision that 11 all examinations for promotion shall be competitive among such members of the next lower rank as desire to submit themselves to such examination.” The petition shows that inspectors were members of the next lower rank to that of assistant superintendent of police. It appears that rule 7 of the rules adopted and published by the commission, and which were in full force and effect at the time when the commission advertised for the promotional examination in controversy, provided that competition should be limited to the members of the next lower rank or grade where the same was constituted of at least two eligible persons, and if there were not two such persons, or if they failed to pass, then persons in the next lower grade could be admitted. In the present case it is made to appear that the examination was taken by at least two inspectors and by captains, of whom Herman F„ Schuettler was one.
The claim of plaintiff in error is that the examination of the captains under these circumstances was void. If this is so, then that part of the prayer for relief which was expunged and which asks that the writ issue to place. Schuettler on the eligible list where the averages as properly computed from such examination would place him, is certainly not tenable. If the examination was void as to all captains, none of them would seem to be entitled to a place on the eligible list by reason of having taken it.
Counsel for the city do not dispute that under the law the examination should be competitive among members only of the next lower rank, viz., the inspectors of police who took the examination. It is urged, however, that the writ will not issue to compel the commission by mandamus to undo what- has already been done, though erroneously. In Spelling on Extraordinary Belief, section 1436, supra, it is said that “mandamus does not lie to compel a party holding an official position to reverse a decision already rendered in the exercise of discretionary powers.” As a general rule the writ is granted to compel the doing of something which ought to be done and which there is,, a clear legal right to have done, not to raido action that has already been taken. It is refused, even in cases where the action taken has been clearly illegal, as in People v. Reardon,
The prayer of the expunged portion of the petition is “that said examination be by said commission set aside and held for naught on account of the aforesaid irregularities.” If the office of assistant Superintendent of police has been filled as a result of the examination in controversy, the incumbent’s right cannot be tried in this proceeding. We are of opinion that mandamus will not lie to set aside and so undo what has already been done, even though it ought not to have been done. Sweet v. Conley, 20 R. I. 381-385.
The judgment of the Circuit Court must therefore be affirmed.
Affirmed.
