In C:\users\MYNAME\Appdata\Roaming. There is a setup for a program that i no longer want. I had already uninstalled the game and deleted the setup from my computer. But a copy of it remains in the roaming folder of appdata. Is it safe to delete it?
As long as you are sure that you no longer need it it should be fine to remove it.
What I would do however is rather than just delete the folder, Move it to another location for a few days just to be sure that you won't have any issues.
If you have any issues you can simply move it back, or if everything is OK after a few days delete the moved folder