I’ve seen my fair share of messy Docks. Even on Mac OS X Server. You can always go back to system defaults, right? Well, in Mac OS X Server you can go back to the default dock using a perl script that Apple has left in /System/Library/ServerSetup. Change your working directory to this folder and then run the following command
./AddDockForUID.pl $UID
The $UID will place the UID of the current user and blast the existing Dock property list, The other day I had an account that wouldn’t log in because of some corruption in the Dock of all places, running this command while logged in as a different user fixed it (replacing $UID with the UID of the user who couldn’t log in). Using the backup of the plist I was able to find the offending corruption and then put it back. But be warned, when you run this you’re starting from scratch with your dock…