Deleting page

I used “ionic g page” to add a page and did some work with it. Then I deleted the page by deleting its folder and removing all references to it.

During this whole time I had “ionic serve” running.

I had some bugs which I couldn’t fix until I noticed ionic serve was putting out some messages referencing the deleted page. I killed and restarted ionic serve and then everything worked as expected.

Does “ionic serve” not recognize page folders that were deleted? Is there a proper way to delete so that ionic serve will update anything it’s caching?

1 Like

Ctrl-C Ionic serve, close your browser, and restart Ionic serve.

OK thanks, that’s what I did and just wanna be sure.