This same problem has just happened to me.
I added an ext with a Cisco phone as it's endpoint... but now I can't see the web gui. Every page redirects to: "Error, no line key set for Cisco Enterprise phone.
Tried going directly to the extensions page and can't.
Anyway to delete an extension via the CLI?