I have a similar situation...a certain block will not delete. It appears to be causing a bunch of style library XML issues in 2025 which we just "migrated" to. Of course, this ancient file with this block error spawned most of our graphics & label files over the years, so the error prone block is spread throughout several files at this point. I have deleted everything from within the block...no change, and still can't delete it. Even once I delete everything in the part, I still can't delete this one block.
ILOGIC CODE:
I did successfully use that ilogic code, but it only worked after I deleted everything I could from my file. On a positive note, sure enough after running that code, I was then able to delete the block. However, I feel like I have just created a "new file", since its completely empty? Was this the intent? I'm unclear how this is useful? Maybe the hope is to copy everything back into that file with a little copy-paste magic (and hours of frustration and direction guessing in the absence of a graphical illustration of previous references like other CAD SW had decades ago)? Anyhow, in my case, the first feature in these parts is typically a DERIVE, so I have no means to go grab a copy of the problem file and copy everything over - DERIVES don't seem to copy & paste AFAIK. So, FILE-NEW, recreate everything, and replace the bad files everywhere with the new ones is certainly an option I was aware of long before reading this thread...but...I guess I was hoping for more. Anyone with insights? What am I missing?