Flushing the Swap file (Virtual Memory):
# swapoff -a && swapon -a
Disabling the Swap File:
# sudo swapoff -a
Permanently Disabling the Swap File:
# nano /etc/fstab
And # hash out the line indicated as swap then reboot:
/etc/fstab
/dev/mapper/centos-root / xfs defaults 0 0
UUID=5cd945c2-5ca7-48c5-b67b-0f3610534e8f /boot xfs defaults 0 0
/dev/mapper/centos-home /home xfs defaults 0 0
# /dev/mapper/centos-swap swap swap defaults 0 0