How would I destroy and respawn an object based on player distance?

Hi guys, so I’ m working on a game that has thousands and thousands of objects, because it’s a blocky sort of game. Anyways it’s randomly generating, and I want it to destroy an object when the player is a certain distance from it, and respawn it when the player gets close again. The objects don’t need to hold any data besides their position and what gameObject they are. How would I go about doing this do you think?