You can delete it easily, you jus need to write a logic. You can delete your game, using deleteGame api which you can find a below code snippet:
ServiceAPI sp = new ServiceAPI("API_Key", "Secret_Key");
GameService gameServuce = sp.buildGameService();
App42Response app42Response = gameServuce.deleteGame("Game_Name");
Once your game is deleted, you can successfully create it using createGame
api. Since, you can easily delete and create game using api. You can schedue this task whenever you want to delete your game, you can schdule custom code using schedule functonality
P.S Delete game api is available in the latest
version of Java SDK. So you need to inetgrate the latest version of Java SDK in custom code. Also make sure that if your game have large no of records to delete it from data base, so you have to wait for delete process otherwise, you will not able to create new game with same name.