This method is only available on newer versions. The first available version (v2_6_3) is shown here.
remove_task(*names)
Alias for Bundler::Thor::Base::ClassMethods#remove_command