How to delete an encrypted swap partition?

@LowTokyo5, as @Keruskerfuerst already mentioned you need to first disable your swap from your current system:

  1. Check inside /etc/fstab and /etc/crypttab for any signs of swap configurations, and disable them when found.
  2. Reboot your system to make sure it does not use the Swap partition.
  3. Double check with swapon -s
  4. If after these steps you are certain that the swap partition is not used anymore, you can use your favorite partitioning tool to re-assign the swap partition for other usage.
2 Likes