How to delete/remove a scaffolded route generated in Yeoman Angular

Matthew Harwood picture Matthew Harwood · Jan 1, 2014 · Viewed 7.3k times · Source

I know I could just delete the code and files; however, is there a way to remove a generated route in yeoman - angular in a similar automated command?

e.g. yo angular:route myroute is how you generate it

What is the cmd line code I would run to remove, rollback, or delete this scaffolding of a route?

Answer

WooCaSh picture WooCaSh · Feb 17, 2014

I think there is not command for do it.

I read the documentation (http://yeoman.io/generators.html#writing-your-first-generator) about generators and subgenerators and I can't find anything about removing process.

I read also documentation about generator API (http://yeoman.github.io/generator/actions.html) and there are options like copy, directory, read and write but still nothing about removing. So I think it's not possible even write your own command for these generators.