After the notice prescribed by sections 47-17-01 and 47-17-02 has been served in the manner therein directed and the period specified by such notice has expired, but not before, the landlord may re-enter or proceed according to law to recover possession.