Operation Integer deleteDevice (String devicename, String system_name), in Class Device

Documentation
returns 0 if the delete is successful