remove in pm2 code example
Example 1: uninstall pm2
pm2 kill
npm remove pm2 -g
#test with :
which pm2
Example 2: pm2 remove id
# stop
pm2 stop process_name
# delete
pm2 delete process_name
pm2 kill
npm remove pm2 -g
#test with :
which pm2
# stop
pm2 stop process_name
# delete
pm2 delete process_name