I assume you do know how to run the "PURGE" command in AutoCAD. If you run that command, you would not see that particular block definition is listed as purge-able, BECAUSE it is/are referenced, that is, there is/are block reference (block, as user sees) of this block definition somewhere in the drawing, thus, it CANNOT BE purged/deleted.
If you run code
ThisDrawing.PurgeAll
it does the same thing as if you execute command "Purge" with "all" option. It is possible to call PurgeAll()/execute command "Purge" multiple time to purge/delete nested block definitions.
Anyway, in your case, if you do not see this actual block reference of this odd block definition anywhere in the drawing, it could be a nested block in another block definition. So, you can try run "Purge" command/ call ThisDrawing.PurgeAll multiple times (2 or 3 times, say) to see if this block definition is gone or not.
Or, since you are doing programming, you can actually search the drawing, (modelSpace/layout/all block definitions...) to see if you can find an AcadBlockReference with this block name. If yes, then you CANNOT delete the block definition!