Get a Notice
Before your landlord can start an eviction case (unlawful detainer), they must give you a written Notice that tells you why they want to end your lease or rental agreement and how much time you have to do what they ask or move out. A Notice is like a written warning that has a deadline.
If you don't do what the Notice says by the deadline
Eviction