Cannot delete device

I have been trying to change my DeviceHandler for one of my light switch… But after updating and deleting a device type I end up with

=> 2 Z-Wave devices, one seems to be the actual device, one has the name of the device type

=> When trying to delete from the IDE I get
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: script1450723819332784040189.groovy: 66: Method definition not expected here. Please define the method at an appropriate place or perhaps try using a block/Closure instead. at line: 66 column: 1. File: script1450723819332784040189.groovy @ line 66, column 1. def parse(String description) { ^ 1 error

Any suggestion on how to fix this?

I would try by removing every automation for that light first. and try to remove your light from ST app.
after that try removing it from IDE.

I had 2 ge switch that give my some trouble 2 weeks ago. they stop working and I had to add them back. but that gave me a double of those switch.

good luck.