How to remove swap (CentOS)

For some reasons you may want to disable swap, especially in vps with much ram.

swapoff -a

To make it permanent, delete the swap mount command in /etc/fstab

nano /etc/fstab
Uncomment the line with "swap" by adding "#" in front

Stickied, thanks for your contributions

I would use this only in rare cases. IMHO, much better to retain a small swap and reduce its’ use with vm.swappiness.