> For AI agents: read the machine-readable documentation index at [https://corpuslaw.us/llms.txt](https://corpuslaw.us/llms.txt) or the single-file full reference at [https://corpuslaw.us/llms-full.txt](https://corpuslaw.us/llms-full.txt).

# G.S. 15-166 — Exclusion of bystanders in trial for rape and sex offenses.

- **Citation**: G.S. 15-166
- **Node Type**: section
- **Jurisdiction**: North Carolina (state)
- **Code Body**: North Carolina General Statutes (compiled through S.L. 2026-30) (G.S.)
- **Official Source**: [https://www.ncleg.gov/EnactedLegislation/Statutes/HTML/BySection/Chapter_15/GS_15-166.html](https://www.ncleg.gov/EnactedLegislation/Statutes/HTML/BySection/Chapter_15/GS_15-166.html)
- **Canonical URL**: [https://corpuslaw.us/codes/north-carolina/chapter-15/article-17/section-15-166](https://corpuslaw.us/codes/north-carolina/chapter-15/article-17/section-15-166)
- **Semantic URL**: [https://corpuslaw.us/codes/north-carolina/chapter-15/article-17/section-15-166](https://corpuslaw.us/codes/north-carolina/chapter-15/article-17/section-15-166)

## Hierarchy

Chapter 15 > Article 17

## Text

§ 15-166.  Exclusion of bystanders in trial for rape and sex offenses.
In the trial of cases for rape or sex offense or attempt to commit rape or attempt to commit a sex offense, the trial judge may, during the taking of the testimony of the prosecutrix, exclude from the courtroom all persons except the officers of the court, the defendant and those engaged in the trial of the case. (1907, c. 21; C. S., s. 4636; 1973, c. 1141, s. 14; 1979, c. 682, s. 3; 1981, c. 682, s. 5.)
