AS-397 Remove metadata when detaching servers

Yeah, I did have some difficulty figuring out why this thing works the way it does. I guess the upside is that at least it's inspectable?