The swapfile can get fairly large at times. It's a pretty normal occurrence. It may change in size while you are using your Mac, even might shrink somewhat on its own. You used to see a large performance hit, when the swap file was in use, but SSDs make that result much less noticeable. If you notice that your system is really slowing down, and also have a large swap file, that's usually your clue that you need more RAM memory (storage space on your drive doesn't count!) If your Mac is an older one, you may be able to add more RAM. Newer Macs, same issue, often means that you need to pay attention to which apps are needing all that swap space, and go easy 😀
You can remove an existing Swapfile by restarting your Mac. The swapfile might come back quite quickly, or you might work for a few days without seeing it return. It all depends on what you do on your Mac, and how you work.
Final thought: If you don't really notice any performance issues, you can choose to ignore the swapfile. It's a natural part of the system - a normal result of memory management on your Mac.