Unregisters a command by its primary name.
Implementations should also remove aliases that point to the definition.