MySQL Eliminar todo donde la identificación no es igual
DELETE FROM table WHERE id <> 2
Mysterious Macaque
DELETE FROM table WHERE id <> 2