PM2 stop in cluster mode

1.3k Views Asked by At

By mistake , I run the following command on the server pm2start app.js -i 3500

Now on server multiple instances are creating in cluster mode. Can anyone suggest how can i stop this ? And how can i delete already instances ?

Thanks

1

There are 1 best solutions below

1
On

Pm2 generally gives a name to process group. You can check that with pm2 list and then run pm2 delete processname

Or run pm2 delete all to delete all processes