Delete invalid folders