Hi awestfall,
Yes the Default layer should be "Wires" Think of it like layer "0: from regular AutoCAD. (Don't Delete it or rename it).
Not Sure why you would need a Script to Clean this, I have seen this several times and everytime it was fixed by moving the Drawing enities to another layer, Removing the problem layer (use Remove layer in the Wire layer Editor), and letting AutoCAD Electrical recreate the layer (By Placing a new Component with the default layers), and setting them back to the original layer. ( you May need to re-assign the colours if the reset to Colour 7 [White/Black] )
How does this happen? , Well its hard to say but the two Main Reasons it happens are:
1. a corrupt database (usually a corrupt project database) Below is the path to the Default Location for the Project database.
(C:\Users\<Username>\AppData\Roaming\Autodesk\AutoCAD Electrical 2014\R19.1\enu\Support\User)
If you have other "strange" things happening in the project then its usually the Project database.
Its possible it created the AutoCAD Electrical default layers in the Wire Layers section because the Normal Layer management tools were not availible.
2.a corrupt drawing, This could happen when AutoCAD Decides to Shutdown in the middle of your work.
Run both Audit commands, Audit (from the Main Menu (big "A") goto Drawing Utilities then select Audit) , and DWG audit (Located on the reports Tab)
There are other reasons it could happen, and its hard to tell.
I would say if you had a rough shutdown on the machine its likely the reason it did that.
( I also Remember there being an issue with one RTM Version doing this)
Update your Service packs to the latest if you haven't and see if the issue happens again.
I hope this helps,
James
James Alger
(I'm on several hundred posts as "algerj")
Work:
Dell Precision 5530 (Xeon E 2176M)
1tb SSD, 64GB RAM
Nvidia Quadro P2000, Win10