Delete invalid service elements.