AS-397 Remove metadata when detaching servers

Have I mentioned I don't like Python's late binding or scoping rules? `method=method` is a pretty bad gotcha for a supposedly newbie-friendly language.