delete invalid class