Sometimes, you generate controller or model that you don't need. You want to reverse the things you've generated. Instead of deleting files manually one by one. Rails has a command for that.
here's the codes.
rails destroy controller <controller name> rails destroy model <model name> rails destroy scaffold <model name>