swapoff moves swapped-out pages back into RAM and disables the swap file — the required prelude to resizing or deleting it. WARNING: if RAM is full, this can stall or OOM-kill processes, so do it when memory is comfortable. Afterward you can safely delete the file and recreate it larger.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.