AS-397 Remove metadata when detaching servers

+1. Thank you for this :)