Lucy - it's legal advice you need here with regards both the legal ownership and what rights those who are occupying land/property may have also.
It's unclear if you bought all the land and property, so including the bit they are living in, or not. But our
PGs 4 and 5 offer guidance re such claims and how they are registered. Being registered/unregistered can make a difference.
But it's the legal requirements that have to be met first and then the registration ones. Hence the need to get legal advice to confirm their and your own rights here