After a talk with Kevin and Mitch, it seems like this feature is currently not feasible. Landscape itself does not support deletion of tags via client config. This means that if application unit would be removed from the machine, landscape-client would not be able to remove the tag from the server in Landscape.
Alternative, as Kevin mentioned, is usage of admin API which has ability to both add and remove tags. However this would require the landscape-client units to have admin API key which is not a good thing.
The true alternative is making landscape itself more juju-aware but that's not currently in short term plans if I understand it correctly.
After a talk with Kevin and Mitch, it seems like this feature is currently not feasible. Landscape itself does not support deletion of tags via client config. This means that if application unit would be removed from the machine, landscape-client would not be able to remove the tag from the server in Landscape.
Alternative, as Kevin mentioned, is usage of admin API which has ability to both add and remove tags. However this would require the landscape-client units to have admin API key which is not a good thing.
The true alternative is making landscape itself more juju-aware but that's not currently in short term plans if I understand it correctly.