Best way to handle massive amount of instances?

I want to make sure I’m using the most efficient way to change the properties, delete, and add massive amounts of instances on the server.

What is the best way of going about it while taking into account the data required for replication and the cost of performing such actions?