await shipit.remote(`pm2 delete -s ${appName} || :`);
await shipit.remote(
`pm2 start ${ecosystemFilePath} --env production --watch true`
);
man: delete|del <name|id|namespace|script|all|json|stdin...> stop and delete a process from pm2 process list
Now you want to delete the app from the PM2 process list. You just have to enter the following commands...