This should probably clear `apps` too. I don't like that we have to do this in two places :(