AS-397 Remove metadata when detaching servers

Global state and service catalog function :(. Sorry for this