AS-397 Remove metadata when detaching servers