Delete the invalid pub dir