Skip to content

Add A "remove component (ng rm c <componentName>)" option in Angular CLi  #24785

@AndreaDotDev

Description

@AndreaDotDev

Command

generate

Description

In the Angular Cli isn't possible to remove a component from the poject by CLI .

If i have to remove a component, i need to delete the folder, and manually remove all the imports from the files where i used the component.

Describe the solution you'd like

It could be the same as the generate component feature but instead of creating a new one, it should delete one from the project, and all relative links.

It could be ng rm c <componentName>

I would like to contribute myself to this feature because is something i was considering for a long time. Thank you so much.

Describe alternatives you've considered

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions