0
 $ sudo swapoff -a; sudo swapon -a

Aug. 14, 2012, 11:21 a.m.Janos

Explanation

Note: if you don't have enough main memory the swapoff will fail.

Limitations

This works only in Linux.