I was trying to cleanup my Infrastructure Map Server a bit - too much Data, Layers, Maps, and Layouts...
However when trying to delete a folder, I'd get "An exception occurred in DB XML component" :(
What!? I can't delete a folder!?? So I started deleting the individual resources within my folders. They would delete, but as soon as I refreshed Site Explorer, the deleted resources would reappear!
I wasn't too happy. But thanks to a couple of savvy colleagues, I found a solution:
Rename the folder and then delete it.
So if this ever happens to you, you are now equipped...