How to reset the id of pm2?

Yao Zhao picture Yao Zhao · Jun 11, 2015 · Viewed 10.1k times · Source

I using pm2. After I started my app several times, the id increased. I deleted all in pm2, and started again, but the id didn't count from 0 any more. How can I reset it?

Answer

Yao Zhao picture Yao Zhao · Jun 12, 2015

The solution is to restart pm2, by typing pm2 kill as said by ItalyPaleAle in the comments.