title: How to delete view and controller action in rails with a command?
body: <p>The closest thing I could find was this:
  <a href="https://stackoverflow.com/questions/4161357/how-do-i-reverse-a-rails-generate?utm_medium=organic&amp;utm_source=google_rich_qa&amp;utm_campaign=google_rich_qa">How do I reverse a &#39;rails generate&#39;?</a></p>
  
  <p>But it's scaffolded models/views/controllers. For example, assume I have the following in:</p>
  
  <blockquote>
    <p><strong>/config/routes.rb</strong></p>
  </blockquote>
  
  <pre><code>get '/choose-chocolate', to: `chocolates#choose_chocolate`
  </code></pre>
  
  <blockquote>
    <p><strong>/app/controllers/chocolates_controller.rb</strong></p>
  </blockquote>
  
  <pre><code>def choose_chocolate
      # code
  end
  </code></pre>
  
  <blockquote>
    <p><strong>/app/views/chocolate/choose_chocolate.rb</strong></p>
  </blockquote>
  
  <pre><code>%h1 Choose Chocolate
  
  = render 'form'
  
  = link_to 'choose_chocolate_submit', val: choc_1, class: "btn choc"
  
  = link_to 'choose_chocolate_submit', val: choc_2, class: "btn choc"
  </code></pre>
  
  <p>I was hoping maybe there was a way I could simply delete 
  VIEW and ACTION and possibly the ROUTE without going into each file, etc. </p>