Table of Contents

Ubuntu - Swap - Remove a Swap File

Disable the swap file

swapoff -v swapfile

Remove the swap file from /etc/fstab

/etc/fstab
swapfile none swap defaults 0 0

Remove the actual swap file

rm /swapfile