DELETE FROM table WHERE id=30 eliminará una fila si existe y no hará nada si no existe. No es necesario detectar errores.