Removing a Swap File

To remove a swap file:

  1. At a shell prompt as root, execute the following command to disable the swap file (where /swapfile is the swap file):
swapoff -v /swapfile