When a new version of Foam is released and you are ready to upgrade you'll want to download the new zip file. As usual, leave it uncompressed and open blender preferences.
Disable and remove the existing version
Open Blender Preferences (Edit -> Preferences), select Add-ons in the menu on the left and then search for foam in the filter at the right of the second line in the Add-ons panel.
If you don't see Foam, then it isn't installed and you can go straight to content/Documentation/0.8.4/Installation to finish installing it for the first time.
Once the add-on is disabled, open up the add-on panel by clicking on the small triangle next to the checkbox. Next to User: click the Remove button. You will see a dialog asking to confirm the action. Click OK.
If you encounter any problems with this part of the process, you can try saving your file and restarting Blender before trying the Remove step again. In particular on Windows some files may not be closed properly and you will need to restart Blender.
If your goal was simply to remove the Foam add-on then you're done. There are a number of reasons you might want to do so but If we did something wrong please let us know so we can improve things!
Now that the add-on has been removed you can go and install the newly downloaded update according to the instructions in content/Documentation/0.8.4/Installation.