Firstly, you can use the command free -h to check the usage of the swap partition in the current system.
Next, you can use the command swapoff -a to disable the currently in use swap partition.
Utilize the command “free -h” to check the status of the swap partition again, ensuring that the swap partition has been disabled.
Finally, you can edit the /etc/fstab file to comment out or delete the relevant lines for the swap partition to ensure that the swap partition will not automatically be mounted the next time the system boots.
Please reboot the system for the changes to take effect.