we have 2 race folders, one for all races (allraces) and one for accepted races (races). here's what happens in each possible scenario:
race is created: it gets written to the allraces folder
race is loaded with /xtrack and accepted: race is copied from allraces to races
race is loaded with /xtrack and deleted: race is deleted from allraces. unless it was already accepted, it's gone forever now
race is loaded with /track and accepted: nothing happens
race is loaded with /track and deleted: race is deleted from races. it still exists in the allraces folder unless that one gets deleted too
r can correct me if i'm wrong but i'm 93.41% sure this is the way things work