If by vanilla you mean "not activex based" it's harder, as my recollection is that entdel won't work on entities in block definitions (could be wrong, try it and confirm / refute), so you have to fake it by walking thru each block definition, collect the entities that are not lwpolylines, and then redefine the block with the remaining entities.