Fix error message when no action is specified.
Add remove action (and fix detach action).