Wrong output by user deletion fixed, closes #866.

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Fixed tickets | #866
| License       | MIT