How to remove dist files in Angular 6?

Issue

I want to deploy my angular project i generated dist file in my src folder like this

ng build

Before deploying I decided to add some functionality to my page :

Question
Is it posible to update dist files by doing like this?

ng serve update /dist dir

if false I want to delete the dist file and create another one so that it can be update with all folders, this is what I wanna do

ng serve remove /dist dir

Is this the right way of removing dist files ?

Solution

Simplest solution on Windows

rd /s dist 

and on Linux

rm -r dist

Answered By – Kamil Naja

Answer Checked By – Marilyn (AngularFixing Volunteer)

Leave a Reply

Your email address will not be published.