Can we delete swap file from Linux?
Answer
Edit the
/etc/vfstab file and delete the entry for the swap file. Recover the disk space so that you can use it for something else. If the swap space is a file, remove it. … Verify that the swap file is no longer available.