Veganmode despawns all enemies from the map, with the exception of animals, and cannibals/mutants inside caves.
This mode can be activated at the main menu of the game by simply typing in "veganmode" with no spaces. Do not press enter, do not use any F keys, there will be no notification that it has been activated, only starting the game will show if it worked or not. Known to work on both PC and PS4, however it will only work on PS4 if you have a USB keyboard to type in the code at the main menu.
Deactivate by using the code "meatmode" at the main menu.
The PC version of The Forest has cheats available that can be entered from the title screen, and it has been reported that if you connect a keyboard to your PS4, you will be able to use the cheats in the PS4 version as well. These can be used without being in developer mode. Just go to the title screen and type in the following codes for the indicated effects.
ironforest – Buildings will become impossible to destroy.
regrowmode – When you sleep, 10% of trees will regrow. (The host can enable this cheat in a multiplayer game.)
veganmode – Enemies will only appear in caves, not in any other areas.
vegetarianmode – Enemies will only appear at night, not during the day.
woodpaste – Holes in the floor and roof will be reset. This effect will revert once you return to the title screen.
rawmeatmode – This enables permadeath. If you die, your save file will be deleted. (Entering the code for another mode will turn permadeath off again.)
meatmode – Deactivate any activated cheats.