I could give you commands to delete all discovered devices but if you run it you will loose ALL historical data like config archive, IPM collector statistics, etc. If you do not want to loose the historical data from your LMS server, then you need to delete the devices manually.