NYC Roommate or Subtenant Removed From a Lease: Can They Be Locked Out?
In NYC, changing roommate or sublease paperwork does not itself authorize a lockout. Learn the 30-day lawful-occupant rule, court-order requirement, and restoration process.

The short answer
In New York City, changing a roommate, sublease, or other occupancy agreement on paper does not by itself authorize someone to physically remove a lawful occupant from the home. NYC Administrative Code § 26-521 and New York Real Property Actions and Proceedings Law § 768 prohibit specified forms of self-help eviction against an occupant who has lawfully occupied the dwelling for 30 consecutive days or longer, or who has entered into a lease, except through a court order, warrant of eviction, or governmental vacate order as the statutes provide.
That does not mean every roommate or subtenant has a permanent right to remain. The underlying lease, sublease, license, consent rules, termination notices, and housing status can determine whether a court can ultimately order the person to leave. The critical distinction is between ending or disputing the right to occupy and physically locking someone out without the required legal process.
The 30-day protection can apply even when the occupant is not named on the main lease
New York City Housing Court states that a person who has legally occupied an apartment for at least 30 days, with or without a lease, may not be evicted without a court order awarding possession and a warrant of eviction. NYC Housing Preservation and Development likewise explains that the unlawful-eviction protection can cover a tenant or subtenant with a lease and a subtenant, roommate, or relative who has lawfully lived in the apartment for at least 30 days, even if that person is not named on the lease and has not paid the landlord directly.
Lawful occupancy still matters. The rule should not be reduced to a claim that any person who enters a dwelling automatically gains the same rights after 30 days. Preserve the agreement, permission to move in, rent or household-payment records, mail, identification records, messages with the leaseholder or owner, and other evidence showing how possession began and how long it continued.
Removing a name from an agreement is different from physically removing the occupant
Roommates can disagree about whether a sublease remains valid, whether a cotenant agreed to a replacement, or whether an owner approved an occupancy arrangement. Those contract questions can matter, but an edited document or newly signed agreement does not itself function as a warrant of eviction.
If a person who is protected by the unlawful-eviction rules is still in possession, changing the locks without providing a key, removing belongings, removing or disabling the entrance door or lock, cutting essential services to force departure, or using force or threats can fall within the conduct prohibited by § 26-521 and RPAPL § 768. A party who believes the occupant no longer has a right to remain generally needs to use the applicable notice and court process rather than self-help.
The rule is not limited to a conventional landlord-versus-tenant dispute
The statutory text applies to 'any person' who carries out the prohibited eviction conduct. New York court decisions applying RPAPL § 768 recognize that unlawful-lockout protections can arise in disputes that do not fit a standard landlord-tenant relationship, including cases involving a leaseholder or other person who had allowed the occupant into lawful possession.
That is especially important in roommate and subtenant disputes. A master tenant, cotenant, sublessor, relative, or other household member should not assume that being the person named on the main lease creates a right to change the locks first and sort out possession later. The proper proceeding and notice depend on the actual relationship, so the paperwork should be reviewed before anyone attempts to terminate occupancy.
What an occupant can do after an alleged illegal lockout
New York City Housing Court instructs a person who has been forcibly or unlawfully locked out without a court order to first call or visit the local police department for assistance. If police cannot restore access, the person may start an illegal-lockout proceeding in Housing Court and ask to be restored to possession.
The court recommends bringing documents that help establish the occupancy, such as a lease, rent receipts, utility bills, and mail addressed to the occupant at the apartment. For a roommate or subtenant, also preserve the sublease or roommate agreement, messages granting permission to live there, proof of household payments, photographs of possessions in the unit, and any messages or photographs showing a lock change or removal of belongings.
A court-order requirement does not decide who ultimately wins the possession dispute
Protection against self-help eviction is procedural as well as substantive: it keeps possession disputes from being decided by force or a lock change. It does not automatically validate an unauthorized sublease, extend an expired agreement, create a renewal, or prevent a person with the legal right to seek possession from starting the appropriate court case.
If the dispute is about whether a sublease ended, whether the landlord consented, whether a roommate replacement was authorized, or whether a notice was legally sufficient, those issues can be litigated in the appropriate proceeding. Avoid turning the 30-day rule into a promise that the occupant can remain indefinitely.
What roommates, tenants, and managers should document before changing an occupancy arrangement
Keep the main lease, every sublease or roommate addendum, landlord-consent documents, renewal documents, screening approvals, move-in dates, rent or household-payment records, written notices, emails and texts about replacement roommates, and a record of who currently has keys and possession. If a new agreement is being proposed, identify whose tenancy or occupancy it is replacing and the intended effective date.
For property managers and leaseholders, do not use a new roommate agreement as a shortcut around an occupant who is still lawfully in possession. For occupants, do not assume that being physically present resolves a disputed lease or sublease. Clear records help separate the contract issue from the separate question of whether lawful court process is required before possession changes.
Use Max Rental Tools to keep the roommate and sublease record organized
Max Rental Tools includes Sublease Agreement, Occupant / Roommate Addendum, Lease Amendment, Resident Communication Record, and move-in documentation workflows that can help preserve who agreed to what and when. Those tools organize the record; New York statutes and current New York City court guidance control the unlawful-eviction rules.
If someone is currently locked out or facing an immediate loss of housing, use the New York City Housing Court and official tenant-help resources promptly rather than relying only on a template or community discussion. A live possession dispute can turn on facts and deadlines that require New York-specific legal assistance.
Common questions
Can a NYC roommate be locked out if their name was removed from a sublease?
Removing or changing paperwork does not by itself authorize self-help eviction. If the roommate or subtenant is protected by NYC's unlawful-eviction rules, physical removal generally requires lawful court process unless a governmental vacate order or other statutory exception applies.
Does a roommate have rights after living in a NYC apartment for 30 days?
NYC Housing Court and HPD state that a person who has lawfully occupied the dwelling for at least 30 days can be protected against an illegal lockout even without being named on the main lease. The underlying right to remain can still be disputed in court.
Can the main leaseholder change the locks on a subtenant or roommate?
Do not assume so. NYC Administrative Code § 26-521 and RPAPL § 768 prohibit specified self-help eviction conduct by any person against covered lawful occupants, including changing a lock without supplying a key.
What should someone do after an illegal lockout in NYC?
New York City Housing Court says to seek police assistance first and, if necessary, start an illegal-lockout proceeding in Housing Court to request restoration to possession. Bring records showing lawful occupancy and the lockout.
Does the 30-day rule mean a roommate can never be removed?
No. It does not create a permanent right to stay. A person with a lawful basis to recover possession can use the required notice and court process; the rule prevents prohibited self-help eviction.
Official sources
New York City Housing Court — Illegal Lock-OutsNew York City Housing Court — NYC Illegal Eviction LawNew York State Senate — RPAPL § 768: Unlawful EvictionNYC Housing Preservation & Development — Tenant Rights and ResponsibilitiesNew York Courts Reporter — James v Hanley (2026 NY Slip Op 26030)Continue your check
Use the state directory for current jurisdiction-specific rules, calculate the proposed increase, then prepare the appropriate rental document only after the legal-rule checks are complete.