14

I am trying to delete an application. I have created a new application using ng new. Now I want to delete that application. Can I do it using CLI? Or can I delete the folder directly?

dur
  • 15,689
  • 25
  • 79
  • 125
prasad
  • 151
  • 1
  • 1
  • 11

5 Answers5

11

Probably you mean deleting a project in Angular multi-project workspace. To do it:

  1. Remove block for project in angular.json
  2. Delete project folder in workspace
  3. Delete project folder in dist folder
  4. Be sure that all Node.js processes are closed (e.g. in Task Manager, if you use Windows)
Viktor Sirotin
  • 169
  • 1
  • 8
3

There is no CLI option for delete. You can manually delete the folder.

Praneeth Reddy
  • 424
  • 3
  • 7
3
  1. if you have started npm start or ng serve, Stop them first.
  2. Delete the folder.
dipak
  • 2,011
  • 2
  • 17
  • 24
1

Stop the Server : ctrl + c

and manually delete the folder.

0

Answer for deletion with command line:

You must delete it manually, you can directly delete or use the rmdir command or del command in cmd prompt. But you also need to use /s option to recursively on rmdir do that with the project folder else it won't go ahead.