Your question is very vague. In short, yes, you can. However, the method in which you can accomplish this would be dependent upon how the person got into possession. I suggest you speak with an attorney.
Dear Brooklyn Tenant:
Inform this person to vacate your home immediately. If you can write out a demand to vacate. Go to your local police precinct. Let the desk know you have an unwanted person in the apartment.
After thirty days the police cannot help and you will need a court proceeding.
I have forty years experience in the specialty of Housing Law and Tenant's Rights advocacy. The answer I provided to you does not create an attorney and client relation. You are free to check my office contact information at my AVVO profile. The answer offered is in the nature of general information, and should not be considered as tailored legal advice. I offer answers as a service to the community with my firm belief that you should try gain a good outcome for your legal issue and to avoid a bad outcome if you can.
You are going to have to sue to remove this person. You can get in serious trouble for simply locking this person out.
Assuming that you don't have a written agreement, the best course of action would be to serve a 30 day notice of terminationof monthly tenancy and if the subtenant does not vacate commence a holdover eviction proceeding. If the subtenant never paid any rent you may be able to sereve a 10 day notice to terminate license and then start a holdover action. If you have a written lease, assuming that there is no overcharge, you may be able to commence a nonpayment eviction action.
Generally you can begin an eviction action as soon as the rent is not paid on time. However your written or verbal lease agreement will govern.
Our Rating is calculated using information the lawyer has included on their profile in addition to the information we collect from state bar associations and other organizations that license legal professionals. Attorneys who claim their profiles and provide Avvo with more information tend to have a higher rating than those who do not.What determines Avvo Rating?Experience & background
Years licensed, work experience, educationLegal community recognition
Peer endorsements, associations, awardsLegal thought leadership
Publications, speaking engagementsDiscipline