You just need to log out for 20 or 30 minutes. Eventually the area will be removed from the servers memory, when the area gets reloaded you get a new batch of animals(meaning no boar)
You can build a fence to stay safe from boars. Won't stop a bear, but they're a bit more rare. You need to claim the whole fenced area, because animals don't spawn on claims.