How to remove nodejs from ubuntu server?

    Run these commands

    $: which node
    /usr/local/bin/node

    then run

    $: cd /usr/local/

    then run

    $: rm -r bin/node bin/node-waf include/node lib/node lib/pkgconfig/nodejs.pc share/man/man1/node.1

    Done

    0