you need to replace ".TABLE_PREFIX." with your tableprefix
and you realized my main problem for deleting multiple selected games - there have to be different steps to be done with each game:
- delete from filesystem
- delete from database
- delete scores, highscores from that game
- delete tournaments with that game
What you can do:
AdminCP -> Game List -> sort by "times played" -> mark/select all games never played and deactivate them