Is it safe to remove snapd from ubuntu server? [duplicate]

If you are not using snaps, then it is safe to uninstall snapd. Several OpenVPN implementations are in the Snap Store, so do be sure you are not using one of them.

snap list                    // List the snaps installed on your system
sudo apt remove snapd        // Uninstall snapd

If you change your mind and wish to begin using snaps, then you must reinstall snapd.

sudo apt install snapd 

A future release-upgrade may re-install snapd, and you might need to remove it again.