Generally, no—a building inspector does not have the authority to "kick you out" of your own home on the spot for a code violation; an inspector can issue notices, stop-work orders, citations, or refer the matter for enforcement, but removing occupants typically requires a separate legal process such as a court order, and immediate removal is reserved for genuinely imminent hazards handled by police, fire, or emergency services rather than a routine code inspection. The precise answer depends on which country, state or province, and type of inspector and code are involved—none of which the question specifies—so the general principle is what can be stated reliably, while the specific powers, notice periods, and appeal rights must be checked against the applicable local code.

What an Inspector Can and Cannot Do During an Inspection

A building inspector's role is to check construction, repairs, and sometimes existing conditions against adopted building, electrical, plumbing, mechanical, fire, or property-maintenance codes. The inspector's tools are administrative: inspection reports, correction notices, stop-work orders, permit denials, citations, and referrals to a code-enforcement officer, licensing board, or prosecutor. In most U.S. jurisdictions, the inspector is not a police officer and does not carry removal authority. A code violation—an unpermitted addition, a missing handrail, an overloaded circuit, a failed final inspection—is a regulatory matter, not by itself a legal basis to eject a resident.

There is an important distinction between access and occupancy. An inspector may have the right to enter for an inspection under the permit process, a warrant, or a statutory inspection authority, and refusing lawful entry can itself become a violation. But the power to enter, inspect, and order corrections is different from the power to remove people. Confusing these two is the most common source of the "the inspector can throw you out" belief.

Where Immediate Removal Can Actually Arise

Imminent hazard or emergency: If an inspector or fire official finds a condition creating an immediate danger—say, a structurally unsafe wall about to collapse, a gas leak, or a fire-damaged building—authorities may order the building vacated at once and may post it as unsafe for occupancy. Even then, the legal authority usually runs through emergency powers, a fire marshal, or a building official's unsafe-structure order, and there is typically a formal posting, notice, and appeal process, not a spontaneous "get out." Court-ordered eviction: Removing a resident who refuses to leave generally requires an eviction or abatement action filed in court, with notice and a hearing. A code violation can trigger that process, but the inspector does not personally carry it out. Criminal or nuisance enforcement: In some places, serious or repeated violations can lead to citations, fines, or prosecution, but incarceration or removal would follow a court proceeding. Rental situations: If the occupant is a tenant, the landlord—not the inspector—usually handles any lease-related removal, and retaliatory eviction for reporting code problems is often specifically prohibited. The inspector's findings may actually protect the tenant.

Ambiguity the Question Leaves Open

The question does not say whether the inspector is a municipal building inspector, a fire inspector, a housing or property-maintenance inspector, or a private inspection service; whether the property is owner-occupied or rented; whether the "code" is a building code, fire code, housing code, or homeowners-association rule; or whether the situation is a routine inspection, a complaint-driven inspection, or an emergency. It also does not name a jurisdiction, and inspection powers are set by state or provincial statute and local ordinance, so a general answer cannot supply the exact notice period or appeal deadline. What is answerable is the structural point: routine code enforcement is administrative and corrective, while physical removal of occupants is a separate, usually judicial or emergency, step.

Practical Sequence in a Typical U.S. Code-Enforcement Matter

A common pattern looks like this: an inspector observes a violation and issues a written correction notice with a compliance deadline. If the problem is dangerous, the inspector may issue a stop-work order or an unsafe-structure notice. If the owner does not comply, the case is referred to a code-enforcement officer or the local government's legal department, which may issue citations, seek an administrative hearing, or file a court action. Removal of occupants, if it happens at all, comes at the end of that chain and through a court or emergency order—not from the inspector's field visit. Many jurisdictions also allow appeals of notices and orders within a set number of days, which is why reading the notice carefully matters more than worrying about being ejected.

Ordinary Language and Colloquial Use

In everyday speech, "the inspector can kick you out" is often shorthand for "the inspector can shut the job down" or "the inspector can fail the inspection." Those are real consequences: a stop-work order halts construction, a failed inspection blocks occupancy of a new building, and a condemnation posting can make a structure legally uninhabitable. But "kick you out" in the sense of physically removing a resident from a home is a different and much higher bar, and it usually involves police, courts, or emergency services rather than a lone code inspector.

The bottom line: treat a code violation as a regulatory problem with a defined correction and appeal process, not as an immediate eviction power. Check the specific notice you received and the local code for your jurisdiction's exact rules.