Deleting an Entity
 
 
 

The entdel function deletes a specified entity. The entity is not purged from the database until the end of the current drawing session, so if the application calls entdel a second time during that session and specifies the same entity, the entity is undeleted.

Attributes and old-style polyline vertices cannot be deleted independently of their parent entities. The entdel function operates only on main entities. If you need to delete an attribute or vertex, you can use command to invoke the AutoCAD ATTEDIT or PEDIT commands.