I think maybe the problem is with the terminology. When you start talking about domain deployments, things get more complicated.
See this document.
Undeploy doesn't mean the same as "remove from domain". The problem is that "undeploy" in the CLI is a command that means slightly different things on Standalone vs. Domain. I'd like to see something more consistent.
Stan