Do I need to deregister when leaving the Netherlands?

Yes, it is mandatory to deregister from the Municipal Personal Records Database (BRP) when you are leaving the Netherlands.