swapoff

Swapoff  –  disables swapping on the specified devices and files. When the -a flag is given, swapping is disabled on all known swap devices and files (as found in /proc/swaps or/etc/fstab). 

You should not use swapon on a file with holes. Swap over NFS may not work.