delete old resource dir