Rental agreement Cancellation

As Salaammu Alaikum and Hello,


So, I told my landlord I would let her know a month before vacating the rental just in case I needed to move. I am in Rabat so do I need to get a certain government office know about my rental agreement? I was thinking since it's a mutual cancellation I would cross out the rental agreement and both can sign it. Does this work? Hopefully, this isn't a big issue.

for complete safety you shoukd send him a formal notice letter + sign and legalize the lease cancellation at the town hall