If the files are no longer being used then yes you can safely remove them. The cgi-bin is not used by threads, but other scripts might use it.

It would be nice to actually have a script that could identify excess files.