Function Syntax: DeleteLayerByFilter Version: 1 Date: 17.08.2025 N/A Important details and safeguards • The dialog hides xref dependent layers and reserved layers 0 and Defpoints. • Deletion is driven by Express Tools -LAYDEL which removes all objects on those layers similar to the native workflow. • If Express Tools is not present the code attempts a normal API delete which only succeeds for empty layers. • The command does not rename layers and does not move objects elsewhere. It deletes contents on the selected layers as part of the layer removal process. Why this is helpful • Speeds up cleaning drawings by batching multiple layer deletions with a safe discoverable UI. • Reduces repetitive command line input while keeping the exact same confirmation logic as manual -LAYDEL. UI elements at a glanceFilter edit box that accepts text or wildcards. Matching layers list box with multi select support. • Buttons: Clear Filter then Select All then Select None then Delete then Cancel. Commands providedDeleteLayerByFilter — opens the dialog and deletes layers selected in the UI. LayDelByList — deletes all layers listed in the variable LAYLIST. Requirements and notes • Requires Express Tools for full functionality because -LAYDEL is part of Express Tools. • Works in localized environments by trying underscored and plain command options for -LAYDEL. • Use with care. Deleting layers via -LAYDEL is destructive and cannot be undone once the undo chain is broken. Consider saving a backup before use. Typical workflow Type DeleteLayerByFilter. Type a filter such as A-* then select desired layers then click Delete. Read the command line summary to confirm how many layers were deleted and which failed if any. List mode example (setq LAYLIST '("V-GENL-SURV-ANNO" "V-TOPO-BREAKLINE" "V-BSS-SURV-PT" "V-CTRL-SURV-PT")) (LayDelByList)