KENNARD, J.
(1) In this murder case, the trial court removed defendant's appointed attorney because the attorney's previous representation of a man whom the defense suspected of committing the murder created a potential conflict of interest; the removal occurred notwithstanding defendant's offer to waive the potential conflict. Defendant contends the removal violated his right to counsel under the federal and the state Constitutions. We disagree.
I
In February 1992, Boyd Wagner, a 92-year-old man, was found dead in his home in Cottonwood, a small community in Shasta County. Two years later, in March 1994, defendant, who lived near Wagner, was charged with murdering him. The Shasta County Municipal Court appointed Shasta County Public Defender Frank O'Connor to represent defendant. O'Connor assigned defendant's case to Deputy Public Defender Gary Roberts.
For the next two years, Roberts represented defendant. At some point, apparently in early 1995, O'Connor ceased to be the public defender; but Roberts, by then an associate in O'Connor's law firm, continued to serve as defendant's counsel.
When O'Connor was the public defender he, rather than Roberts, was the attorney of record. (See People v. Sapp (2003) 31 Cal.4th 240, 256 [2 Cal.Rptr.3d 554, 73 P.3d 433] ["`In cases handled by the public defender's office, it is the officeholder who is the attorney of record.'"].) After O'Connor ceased to be the public defender, it is unclear whether O'Connor or Roberts was defendant's attorney of record, but most likely O'Connor was, because motions filed on defendant's behalf listed the "Law Office of Frank J. O'Connor" as defendant's attorney. Attorney Roberts, however, made all the appearances and signed all the motions filed on defendant's behalf.
For simplicity and clarity, we refer to Roberts as defendant's lawyer, even though O'Connor technically may have been the attorney of record, and we use the term "O'Connor's law office" to refer both to the office O'Connor occupied as public defender and to the law firm he headed after he no longer was the public defender.
Roberts filed numerous motions and engaged in extensive pretrial litigation, most of which pertained to the admissibility of certain DNA evidence. The DNA was extracted from a pair of bloodstained pants found in defendant's bedroom. Tests showed that the DNA of the blood on the pants matched that of murder victim Wagner.
In a series of in camera hearings beginning in February 1996, Attorney Roberts told the trial court he was investigating the possibility that one Michael Wert had committed the murder, which might give rise to a conflict of interest because O'Connor's law office, where Roberts was an associate, had previously represented Wert. Defendant and Wert had an acrimonious relationship that dated back to 1989, when defendant and his wife separated and defendant's wife moved in with Wert. In late 1989 and early 1990 there were violent incidents involving the two: Wert assaulted defendant's wife, defendant assaulted Wert, and Wert and his brother William assaulted defendant. The defense also had information that Wert had been involved in a murder in Los Angeles and had been living under an assumed name as part of a witness protection program. In February 1992, the month Wagner was killed, Wert was arrested on felony drug charges. He was released on bail a few days before the killing. The defense, however, had no evidence linking Wert to Wagner's death. It regarded him as a possible suspect for these reasons: he was a reputed drug dealer who had a history of violence and might have needed money to pay his bail bondsman; he was living in Cottonwood, where the murder of Wagner occurred; and he had a motive to "frame" defendant for the murder because of their troubled relationship.
Attorney Roberts's possible conflict of interest pertaining to Wert resulted primarily from two matters. First, O'Connor's law office, in which Roberts was an associate, had represented Wert in the 1992 drug charges mentioned above. Second, in 1994 Roberts himself represented Wert on a charge that Wert had violated probation and had escaped from electronic home confinement. Roberts negotiated a plea bargain under which Wert admitted the probation violation in exchange for dismissal of the escape charge. Roberts had also represented Wert's brother William on a bad check charge. But so far as Roberts knew, neither he nor anyone in O'Connor's law office had received any communication from Wert that could be useful in defendant's case.
As the trial court became aware of these facts through Roberts, it held a series of in camera hearings to discuss the situation. At the first hearing, on February 29, 1996, the court appointed Attorney John Webster to discuss with defendant his right to conflict-free counsel. Later that day, the court met with defendant as well as Attorneys Webster and Roberts. Webster told the court he had fully advised defendant about all possible conflicts of interest, to the extent he was aware of them, and that defendant nevertheless wanted to be represented by Roberts. Defendant told the court he would waive any possible conflict of interest. Roberts said he saw no reason why he could not represent defendant, but he raised the possibility that a conflict could arise if the defense turned up evidence linking Wert to the murder. The court asked Roberts if his representation of defendant would be adversely affected by the possibility that Wert might report him to the State Bar or sue him. Roberts replied he'd "like to think about that."
At the second in camera hearing, on March 14, 1996, Roberts mentioned that he had consulted two attorneys knowledgeable about conflicts of interest, and that both saw no conflict in his continued representation of defendant. Roberts said that he had thought about the possibility of Wert's suing him but concluded that it would not interfere with his ability to adequately represent defendant. He explained, "that's why we have malpractice insurance," adding that if he was adequately represented in any such lawsuit Wert would have no chance of prevailing. And Roberts expressed no concern about the possibility that Wert would report him to the State Bar, explaining: "The State Bar would only be concerned about it if there was a conflict. And I'm satisfied . . . that there is no conflict." He noted that if he were taken off defendant's case, it would be "emotionally devastating" to defendant, and that it would "require a major delay in proceedings while another attorney got up to speed."
At the third in camera hearing, held on June 24, 1996, Roberts said it made him "very uneasy that I'm with this office that has this close relationship with the representation of Michael Wert" and that the possibility of a conflict was "very troublesome." He acknowledged that "if I stay with the case, I'm potentially creating problems." He told the court that another client in a criminal case had filed a complaint against him with the State Bar, and even though the bar had absolved him of wrongdoing he had to spend two days of work responding to the complaint. The court asked Roberts if going through that experience could cause him "to flinch in this case." Roberts said it might. Asked for his response, defendant said he wanted Roberts to continue representing him.
Two days after that hearing, the trial court announced that it had decided to remove Roberts as defendant's counsel because of the potential conflict. Roberts asked for a fourth in camera hearing. There, he told the court Wert was unlikely to testify as a witness at trial. The court explained that the possibility of Wert's testifying was only one of the factors that led to his decision to remove Roberts. It explained: "[I]f [defendant] believes there is any likelihood that Mr. Wert is the actual perpetrator, then he has the right to have an attorney that is totally unhindered in pursuing that possibility from the very get go, including investigation. And one that would not have any psychological pressure on him to [be] hesitant, to fully prosecute any actions against your former client. [¶] And I think that puts you in a very unfair position from your perspective. . . ." The court added it felt "compelled . . . by the law" to discharge Roberts.
After consulting with defendant, Attorney Roberts told the trial court that defendant did not want to "pursue any issue involving Michael Wert," but that in Roberts's view defendant should consult with independent counsel before making that choice. Defendant then said, "I don't need no lawyer to tell me. I don't want to pursue Michael Wert as a suspect." That, the court replied, this was to be decided by defendant's lawyer. It refused to reconsider its ruling removing Roberts, and it appointed Attorney Russell Swartz to represent defendant.
Defendant's case went to trial in January 1998, a year and a half after the court's removal of Attorney Roberts. Defendant, by then represented by Swartz, presented no evidence pertaining to Wert. The jury convicted defendant of first degree murder.
The Court of Appeal's three-member panel affirmed the conviction, but could not agree on a rationale for its result. Justice Davis's lead opinion concluded that the trial court's removal of Attorney Roberts was erroneous under state law. It reasoned, however, that because defendant had not challenged the removal by pretrial writ, and instead had waited to raise the issue on appeal, he could obtain reversal of his murder conviction only on a showing of prejudice, which he had not established. According to the lead opinion, the record did not show that the trial court's discharge of defendant's appointed counsel prejudiced defendant. Justice Raye found the trial court's removal of Roberts to be a violation of both state law and the federal Constitution. Nevertheless, he concluded that improper removal of appointed counsel does not require reversal absent a showing of prejudice, which defendant had not made. Justice Callahan found no error whatsoever, reasoning that the trial court had properly exercised its discretion in removing Roberts as defendant's counsel.
II
(2) "A trial court's authority to disqualify an attorney derives from the power inherent in every court `[t]o control in furtherance of justice, the conduct of its ministerial officers, and of all other persons in any manner connected with a judicial proceeding before it, in every matter pertaining thereto.'" ( People ex rel. Dept. of Corporations v. SpeeDee Oil Change Systems, Inc. (1999) 20 Cal.4th 1135, 1145 [ 86 Cal.Rptr.2d 816, 980 P.2d 371] ( SpeeDee Oil).) Inherent in the question whether a trial court may disqualify a criminal defense attorney over the defendant's objection is the conflict between the defendant's preference to be represented by that attorney and the court's interest in "ensuring that criminal trials are conducted within the ethical standards of the profession and that legal proceedings appear fair to all who observe them." ( Wheat v. United States (1988) 486 U.S. 153, 160 [ 100 L.Ed.2d 140, 108 S.Ct. 1692] ( Wheat); see also SpeeDee Oil, supra, at pp. 1144-1147.)
III
Defendant contends the trial court's removal of his appointed counsel because of a potential conflict of interest, notwithstanding defendant's desire to waive that conflict, violated his right to counsel under the Sixth and Fourteenth Amendments to the federal Constitution. We disagree.
In Wheat, supra, 486 U.S. 153, the United States Supreme Court discussed the extent to which the federal Constitution limits a trial court's power to remove an attorney for a conflict of interest. In that case, the defendant was charged with conspiring to sell illegal drugs. Attorney Eugene Iredale represented two other alleged participants in the conspiracy: One (Bravo) eventually pled guilty to participating in the conspiracy; the other (Gomez-Barajas) was tried and acquitted, but he had other unrelated charges pending. When the defendant sought to be represented by Iredale, the prosecution objected. It contended that the defendant might be called as a witness in a trial on Gomez-Barajas's remaining charges, and that Bravo might be called as a witness if the defendant's case went to trial. In either event, the prosecution argued, Attorney Iredale had a conflict of interest. The defendant insisted that he and Bravo were unlikely to be witnesses, and he offered to waive any possible conflict of interest. The trial court nevertheless ruled that Iredale could not represent him.
The high court in Wheat upheld the trial court's refusal to allow Iredale to represent the defendant. The court explained that "while the right to select and be represented by one's preferred attorney is comprehended by the Sixth Amendment, the essential aim of the Amendment is to guarantee an effective advocate for each criminal defendant rather than to ensure that a defendant will inexorably be represented by the lawyer whom he prefers." ( Wheat, supra, 486 U.S. at p. 159.) When a defense attorney has a potential conflict of interest, the court noted, a trial court is placed in a difficult dilemma: "If a . . . court agrees to the . . . representation, and the advocacy of counsel is thereafter impaired as a result, the defendant may well claim that he did not receive effective assistance. [Citation.] On the other hand, a . . . court's refusal to accede to the . . . representation may result in a challenge such as petitioner's in this case. Nor does a waiver by the defendant necessarily solve the problem, for we note, without passing judgment on, the apparent willingness of the Courts of Appeals to entertain ineffective-assistance claims from defendants who have specifically waived the right to conflict-free counsel." ( Id. at pp. 161-162.)
Moreover, the high court stated, a trial court's decision whether to allow a defendant to waive a conflict of interest cannot be made after trial, but instead occurs "in the murkier pretrial context when relationships between parties are seen through a glass, darkly." ( Wheat, supra, 486 U.S. at p. 162.) The court went on to say that "[t]he likelihood and dimensions of nascent conflicts of interest are notoriously hard to predict" and are "even more difficult to convey by way of explanation to a criminal defendant untutored in the niceties of legal ethics." ( Id. at pp. 162-163.)
(3) Thus, the high court concluded, trial courts "must be allowed substantial latitude in refusing waivers of conflicts of interest not only in those rare cases where an actual conflict may be demonstrated before trial, but in the more common cases where a potential for conflict exists which may or may not burgeon into an actual conflict as the trial progresses." ( Wheat, supra, 486 U.S. at p. 163, italics added.)
Here that potential existed, at least with regard to Wert. At the time of Wagner's murder, Roberts was an attorney working in O'Connor's law office, which was representing Wert on an unrelated matter. Wert may have given the office information pertaining to his whereabouts at the time of the murder and his financial status, matters that could have become relevant if the defense later obtained information linking Wert to the murder. Although the likelihood that Wert had revealed such information may not have been great, it was enough to create a serious potential conflict of interest for Defense Attorney Roberts. Indeed, at the last in camera hearing before his removal as defendant's attorney, Roberts told the trial court that the possibility of a conflict was "very troublesome" and had the potential of "creating problems." He also said his fear of being sued by Wert might affect his representation of defendant. Under Wheat, supra, 486 U.S. at page 163, the trial court had "substantial latitude" to eliminate the potential conflict by discharging Roberts as defendant's appointed attorney. Consequently, that discharge did not violate defendant's right to counsel under the federal Constitution.
IV
Defendant contends that even if the trial court did not violate the federal Constitution when it discharged appointed Attorney Roberts, it nonetheless violated the state Constitution. We begin our analysis with a brief review of the four pertinent decisions of this court.
In People v. Crovedi (1966) 65 Cal.2d 199 [ 53 Cal.Rptr. 284, 417 P.2d 868] ( Crovedi), we held that the trial court committed reversible error when it denied the defendant a seven-week continuance to allow his retained counsel to recover from a midtrial heart attack and insisted that counsel's associate represent defendant for the rest of the trial. We explained that although "a defendant has no absolute right to be represented by a particular attorney, still the courts should make all reasonable efforts to ensure that a defendant financially able to retain an attorney of his own choosing can be represented by that attorney." ( Id. at p. 207, fn. omitted.) We continued, "an accused must be afforded reasonable opportunity for representation by retained counsel of his own choice whether or not a conflict of interest is shown." ( Ibid., italics added.)
Thereafter, in Smith v. Superior Court (1968) 68 Cal.2d 547 [ 68 Cal.Rptr. 1, 440 P.2d 65] ( Smith), we addressed the issue of discharging a court-appointed attorney. In that case, a judge who had a personality conflict with the defendant's appointed attorney discharged the attorney on the basis of incompetence. We ordered reinstatement of the attorney. Quoting Crovedi, supra, 65 Cal.2d at page 206, we said the threat to remove counsel for alleged incompetence is "`an unreasonable interference with the individual's desire to defend himself in whatever manner he deems best. . . .'" ( Smith, supra, 68 Cal.2d at p. 561.) We recognized that the defendant's attorney, unlike defense counsel in Crovedi, was appointed rather than retained, but we considered the distinction inconsequential: "[O]nce counsel is appointed to represent an indigent defendant, whether it be the public defender or a volunteer private attorney, the parties enter into an attorney-client relationship which is no less inviolable than if counsel had been retained." ( Smith, supra, 68 Cal.2d at p. 562.)
We expressed a similar view in Cannon v. Commission on Judicial Qualifications (1975) 14 Cal.3d 678 [ 122 Cal.Rptr. 778, 537 P.2d 898] ( Cannon). There, we removed a judge from office for, among other things, "`unlawful interference . . . with the attorney-client relationship'" ( id. at p. 698) by recusing deputy public defenders whom she had held in contempt. In rejecting the judge's claim that she had inherent power to remove the attorneys, we said that " Smith[, supra, 68 Cal.2d 547,] makes it abundantly clear that the involuntary removal of any attorney is a severe limitation on a defendant's right to counsel and may be justified, if at all, only in the most flagrant circumstances of attorney misconduct or incompetence when all other judicial controls have failed." ( Cannon, supra, 14 Cal.3d at p. 697; see also People v. Daniels (1991) 52 Cal.3d 815, 846 [ 277 Cal.Rptr. 122, 802 P.2d 906] [quoting Cannon with approval].)
Thereafter, we applied the reasoning of those three decisions ( Cannon, supra, 14 Cal.3d 678; Smith, supra, 68 Cal.2d 547; and Crovedi, supra, 65 Cal.2d 199) in Maxwell v. Superior Court (1982) 30 Cal.3d 606 [ 180 Cal.Rptr. 177, 639 P.2d 248] ( Maxwell), where the defendant was willing to waive a potential conflict of interest between himself and his attorneys. Charged with 10 counts of capital murder, the indigent defendant was able to retain private attorneys by signing a contract assigning to them all rights to his life story. Finding that the contract created a possible conflict of interest, the trial court discharged the attorneys. We ordered their reinstatement. We explained: "[T]he mere possibility of a conflict does not warrant pretrial removal of competent counsel in a criminal case over defendant's informed objection. When the possibility of significant conflict has been brought to the court's attention and the danger of proceeding with chosen counsel has been disclosed generally to defendant, he may insist on retaining his attorneys if he waives the conflict knowingly and intelligently for purposes of the criminal trial." ( Maxwell, supra, 30 Cal.3d at p. 619, italics added, fns. omitted.)
It is difficult to determine the basis underlying the holdings in the quartet of cases discussed above. ( Maxwell, supra, 30 Cal.3d 606; Cannon, supra, 14 Cal.3d 678; Smith, supra, 68 Cal.2d 547; and Crovedi, supra, 65 Cal.2d 199.) It is far from clear whether they are grounded on the state Constitution; or on the federal Constitution (in which event they are superseded by the high court's decision in Wheat, supra, 486 U.S. 153, to the extent they are inconsistent with that decision); or on neither Constitution, instead simply delineating the limits of a trial court's discretion to remove an attorney because of a possible conflict of interest. Citing these four decisions, defendant here argues that the trial court's removal of his attorney violated article I, section 15 of the California Constitution, which gives a criminal defendant "the right . . . to have the assistance of counsel. . . ." As we shall explain, the removal did not violate defendant's right to counsel under the California Constitution.
As we noted in SpeeDee Oil, supra, 20 Cal.4th at page 1145, a trial court's power to disqualify an attorney derives from Code of Civil Procedure section 128, subdivision (a)(5), which authorizes a trial court to "control in furtherance of justice, the conduct of its ministerial officers, and of all other persons in any manner connected with a judicial proceeding before it. . . ." Under this section, which applies in criminal cases ( Comden v. Superior Court (1978) 20 Cal.3d 906, 916, fn. 4 [ 145 Cal.Rptr. 9, 576 P.2d 971]; People v. Superior Court (Greer) (1977) 19 Cal.3d 255, 261, fn. 4 [ 137 Cal.Rptr. 476, 561 P.2d 1164]), "a trial court's decision on a disqualification motion is reviewed for abuse of discretion" ( SpeeDee Oil, supra, at p. 1143). Here, defendant does not contend that the trial court violated this section when it removed attorney Roberts, and we do not address the issue.
(4) The California Constitution gives a criminal defendant the right to an attorney who must competently represent the defendant. But, as we have often pointed out, the state Constitution does not give an indigent defendant the right to select a court-appointed attorney. ( Harris v. Superior Court (1977) 19 Cal.3d 786, 795-796 [ 140 Cal.Rptr. 318, 567 P.2d 750]; Drumgo v. Superior Court (1973) 8 Cal.3d 930, 934 [ 106 Cal.Rptr. 631, 506 P.2d 1007]; People v. Hughes (1961) 57 Cal.2d 89, 98-99 [ 17 Cal.Rptr. 617, 367 P.2d 33]; see generally People v. Courts (1985) 37 Cal.3d 784, 796, fn. 11 [ 210 Cal.Rptr. 193, 693 P.2d 778].) (5) True, in certain circumstances a trial court abuses its discretion if it refuses to honor an indigent defendant's request for appointment of an attorney with whom the defendant has a long-standing relationship (see Harris, supra, 19 Cal.3d 786 [trial court abused its discretion in refusing to appoint attorneys who had represented the defendants in related criminal proceedings and had developed a close working relationship with them]), but this abuse of discretion does not ordinarily violate the defendant's right to counsel.
(6) The removal of an indigent defendant's appointed counsel, which occurred here, poses a greater potential threat to the defendant's constitutional right to counsel than does the refusal to appoint an attorney requested by the defendant, because the removal interferes with an attorney-client relationship that has already been established. But when, as here, a trial court removes a defense attorney because of a potential conflict of interest, the court is seeking to protect the defendant's right to competent counsel. In such circumstances, there is no violation of the right to counsel guaranteed by article I, section 15 of the state Constitution, notwithstanding the defendant's willingness to waive the potential conflict. (See generally People v. McDermott (2002) 28 Cal.4th 946, 990 [ 123 Cal.Rptr.2d 654, 51 P.3d 874] [stating in passing that "a trial court may refuse to accept . . . a waiver" of the right to be represented by conflict-free counsel].)
In Alcocer v. Superior Court (1988) 206 Cal.App.3d 951, 957 [ 254 Cal.Rptr. 72], the Court of Appeal stated: "A court abridges a defendant's right to counsel when it removes retained defense counsel in the face of a defendant's willingness to make an informed and intelligent waiver of his right to be represented by conflict-free counsel." (Italics added.) We need not decide whether the state Constitution permits a defendant to insist on being represented by a retained attorney who has a potential conflict of interest, for here defendant's attorney was appointed by the court, not privately retained by defendant.
DISPOSITION
We affirm the judgment of the Court of Appeal.
George, C.J., Baxter, J., Chin, J., and Brown, J., concurred.