delete operator error case statement, update error define code