Unable to deregister "zombie" services that were registered by Nomad

I have these 3 services that I would describe as zombies. They don’t show up in Nomad. I can’t figure out how to get rid of them. When I am viewing consul monitor and try consul service deregister -id=_nomad-task-5afe9a87-2c66-c60c-5a9b-b9f83130c33b-group-nginx-nginx-loadbalancer-httpr the monitor reports that the service gets de-registered. But then it immediately pops up again. Any ideas?

I finally resolved this.

consul services deregister -id=<id>
service nomad restart
service consul restart