Is it safe to delete the com.apple.appstore folder? It takes up 80gb on my 256gb hard drive
It’s safe to delete just about anything as long as you:

Have a backup and know how to restore things.
Have internet recovery so if you break things, you can reinstall macOS.

Since you know where that folder is located, it’s best to give a general answer since we can’t guess if that’s something you made, another software made or Apple made.
Then feel free to ask a follow on question if you need help like this and you don’t have good results with a process to reset things:

Mac App Store Download Failure - Clear Cache?

In my experience, this self-solves by booting to recovery, reinstalling the OS and restarting twice, no need to delete anything at all. (But it’s a pretty rare failure in my experience)