I was trying to delete a CSV MA from a MIM sync service. The connector space was empty but all I got was the error “Unable to delete the management agent” and the code 0x8023060c. Nothing in the event logs at all.
I was convinced it was something to do with the database and rolled it back a couple of days – no change. I finally decided to start over with a fresh install, re-migrate the config and re-load the data. It was while cleaning up the MaData folder I found my stupid mistake – in another logon session I had the CSV file in the MA’s MaData folder open, so MIM couldn’t rename the folder as part of deleting the MA!
Pretty dumb mistake – but a “File locked” error message somewhere would have really helped.