Erase line on a layer a layer in a cad, using python

Hi, I want to select objects on a specific layer in my autocad drawning. After, I want to delete them. I tried a couple thing (using python) with exdxf or pyautocad. Can someone send me line to select and delete an object in a cad? Sorry if my english is bad, it’s not my first language but i’m trying my best! :slight_smile: Thank you