Add delete to Line API

Special thanks to @invisiblefunnel for explaining testing.