I would just have another group of “squatters” come in and take it from those actual squatters. Neither groups to ever be seen again.
The fact we don’t employ common sense these days allows this crap to happen. When properties are not abandoned but are empty for sale, or if someone has a summer home they use seasonally, squatters are just thieves. Breaking and entering and should be removed immediately and charged, tried and jailed. Then everyone wins, the owner keeps their property and the squatters get a place to live.