This method is only available on newer versions. The first available version (v2_6_3) is shown here.
remove_invocation(*names)
Remove a previously added invocation.
remove_invocation :test_framework
# File lib/bundler/vendor/thor/lib/thor/group.rb, line 149 def remove_invocation(*names) names.each do |name| remove_command(name) remove_class_option(name) invocations.delete(name) invocation_blocks.delete(name) end end