Getting rid of swapfile is easy . I assume you created the file /swapfile for swap .
Turn off swap with the command sudo swapoff /swapfile
Remove the fstab entry for swapfile . sudo nano /etc/fstab . Comment the line /swapfile none swap sw 0 0
Reboot and see if there is any delay in booting .
Delete the file /swapfile ( sudo rm /swapfile ) .
If it’s a partition don’t delete it . Just disable the swap with first command , replacing /swapfile with swap partition and remove fstab entry .
I had troubles with deleting a swap partition previously .
Edit : swapon --show this command will show you which file is used as swap .
Yep . Deleting a swap partition delayed my boot time 90s because the system was searching for that swap partition . This happened even after I remove the line from fstab . So don’t delete a swap partition unless you really know how to .
I’m not sure, if that is a good idea. It should be fine as long as no problems occur. You might get in trouble if there are problems with the latest kernel and you need to boot with another kernel (e.g. kernel-lts). I recommend to set the timeout to at least 1.