For Dutch citizens, and citizens of the U.S.A. there is a simple procedure for deregistering. As long as all taxes have been paid and you do not have any outstanding fines, it is pretty simple to leave for good, by simply deregistering at the civil registry (Kranshi). You will then receive a notice from them which lists the municipality and country you are moving to.
For people with a different nationality, there is a more complex procedure that needs to be followed before you are allowed to leave, the so-called “stamp procedure”. You are required to obtain a total of six stamps from various authorities, and only once you have obtained all these stamps, can you deregister at the civil registry and receive your notice. Just like the Dutch and U.S. citizens, you also need to make sure all taxes have been paid and you have no outstanding fines.