How to delete one node whose name is "-E"


I wrongly bootstrap one node without giving the name, such as
knife bootstrap -N -E es.core -x vm -P vm --sudo -r 'role[base]'.
Now, there is one node whose name is "-E" in the system. I can search and list the node.

$ knife search node "name:*E"
1 items found

Node Name:   -E
Environment: _default
Run List:    role[base]

But I can not show or delete the node. The deletion command always fail. Does anyone have similar experience, and can give one suggestion? Thanks a lot!

$ knife node delete -y "-E"
Traceback (most recent call last):
	8: from /usr/local/bin/knife:272:in `<main>'
	7: from /usr/local/bin/knife:272:in `load'
	6: from /opt/chef-workstation/embedded/lib/ruby/gems/2.5.0/gems/chef-14.2.0/bin/knife:25:in `<top (required)>'
	5: from /opt/chef-workstation/embedded/lib/ruby/gems/2.5.0/gems/chef-14.2.0/lib/chef/application/knife.rb:160:in `run'
	4: from /opt/chef-workstation/embedded/lib/ruby/gems/2.5.0/gems/chef-14.2.0/lib/chef/knife.rb:218:in `run'
	3: from /opt/chef-workstation/embedded/lib/ruby/gems/2.5.0/gems/chef-14.2.0/lib/chef/knife.rb:218:in `new'
	2: from /opt/chef-workstation/embedded/lib/ruby/gems/2.5.0/gems/chef-14.2.0/lib/chef/knife.rb:301:in `initialize'
	1: from /opt/chef-workstation/embedded/lib/ruby/gems/2.5.0/gems/chef-14.2.0/lib/chef/knife.rb:321:in `parse_options'
/opt/chef-workstation/embedded/lib/ruby/gems/2.5.0/gems/mixlib-cli-1.7.0/lib/mixlib/cli.rb:230:in `parse_options': missing argument: -E (OptionParser::MissingArgument)

Can you use the manage UI to delete it?

Try: knife node delete -y -- "-E"

Thanks for the reply. Unfortunately we don't install UI for management. Seems Marc's solution works!

It works. Thanks a lot!