01 / 21

Removing & Merging
Layers in AutoCAD

Learn to simplify your drawings by removing unused layers and merging redundant ones using the Purge and LAYMRG workflow.

AutoCAD Layer Management

What Are Layers in AutoCAD?

Layers are like transparent sheets stacked on top of each other. Each layer holds specific types of objects: walls on one layer, dimensions on another, furniture on a third. This organization lets you control visibility, color, linetype, and printability for groups of objects all at once.

Dimensions Furniture Walls LAYER STACK

Why Do Unused Layers Accumulate?

Copied Blocks
Inserting blocks from other drawings imports all their layers, even if you only need a few objects.
Template Bloat
Templates often include dozens of standard layers. Projects rarely use every single one.
Design Revisions
Layers created during early design phases may become obsolete as the project evolves.

Two Core Tools: PURGE & LAYMRG

PURGE
Removes unused named objects: layers, block definitions, text styles, linetypes, and more. Only items with zero references can be purged.
LAYMRG
Merges one layer into another. All objects on the source layer are moved to the target layer, then the source is deleted.

How PURGE Works

Before PURGE Walls (12 objects) Furniture (8 objects) Old-Notes (0 objects) Temp-Grid (0 objects) Dimensions (5 objects) 5 layers total PURGE After PURGE Walls (12 objects) Furniture (8 objects) Dimensions (5 objects) 3 layers total Old-Notes, Temp-Grid removed

How LAYMRG Works

Source Layers Wall-Interior Wall-Exterior Objects move to target Sources are deleted LAYMRG Target Layer Walls All objects consolidated into one layer

PURGE vs LAYMRG: Key Differences

PURGE LAYMRG
Purpose Remove unused items Combine layers with objects
Requires empty layer? Yes No
Objects affected? None (layer is empty) All objects move to target
Also cleans Blocks, styles, linetypes Layers only
Undoable? Yes (UNDO) Only before save
Command PURGE LAYMRG

Step-by-Step: PURGE Workflow

1
Type PURGE in the command line and press Enter. The Purge dialog box opens.
2
Expand the Layers node in the tree view. All purgeable (unreferenced) layers appear here.
3
Select specific layers or click Purge All to remove every unused named object at once.
4
Confirm each deletion (or check "Purge nested items" to skip individual confirmations).
5
Run PURGE again. Nested dependencies may free up additional items after the first pass.
Command Line PURGE → Enter → Purge All → Confirm

Step-by-Step: LAYMRG Workflow

1
Save your drawing. LAYMRG is difficult to undo after saving.
2
Type LAYMRG and press Enter.
3
Select the source layer by clicking an object on that layer, or type N to select by name from a list.
4
Select the target layer by picking an object on the destination layer, or type N for the name list.
5
Confirm the merge. All source objects move to the target; the source layer is deleted.
Command Line LAYMRG → Select source object → Select target object → Yes

The Complete Cleanup Workflow

Step 1 Audit layers Step 2 LAYMRG duplicates Step 3 PURGE empties Step 4 PURGE again Step 5 Verify & save Merge first, then purge: this order catches the most layers. Run PURGE multiple times to clear nested dependencies.

Example 1: Simple Purge

You receive a floor plan with 15 layers. After inspecting, you find that 4 layers contain no objects at all: Draft-Notes, Revision-Cloud, Old-Title, and Temp-Hatch.

1
Type PURGE and press Enter.
2
Expand Layers in the dialog. All 4 empty layers are listed.
3
Click Purge All. Confirm when prompted.

Example 2: Merging Redundant Layers

Your drawing has two wall layers: A-Wall-Int (interior walls, 24 lines) and A-Wall-Ext (exterior walls, 18 lines). Your office standard requires a single layer called A-Wall.

1
Save the drawing first (Ctrl+S).
2
Create the target layer A-Wall with the correct color, linetype, and lineweight.
3
Type LAYMRG → select an object on A-Wall-Int → select an object on A-Wall → Confirm.
4
Repeat: LAYMRG → A-Wall-Ext → A-Wall → Confirm.

Example 3: Full Cleanup Scenario

A consultant sends you a drawing with 47 layers. Your company standard uses only 20 layers. Here is the full workflow:

1
Audit: Open the Layer Properties Manager. Identify layers with objects vs. empty layers.
2
Map layers: Decide which non-standard layers should merge into which standard layers.
3
LAYMRG: Merge each non-standard layer into its standard equivalent (one at a time).
4
PURGE: Run PURGE to remove all now-empty layers and unused definitions.
5
PURGE again: Run a second pass to catch nested items freed by the first purge.

What Cannot Be Purged?

Layer 0
The default layer is permanently protected. It can never be deleted, purged, or renamed.
Current Layer
Whatever layer is currently active cannot be purged. Switch to a different layer first.
Xref Layers
Layers from external references are controlled by the xref. Detach the xref to remove them.

Common Mistakes to Avoid

✕ Merging without saving
LAYMRG is hard to undo after a save. Always Ctrl+S before merging so you can revert if needed.
✕ Running PURGE only once
Nested dependencies (blocks referencing layers) may only become purgeable after the first pass. Always run it at least twice.
✕ Ignoring ByLayer properties
After LAYMRG, objects inherit the target layer's properties only if they are set to ByLayer. Objects with hard-coded colors or linetypes won't change.

Summary: Cleanup Quick Reference

Scenario Command Key Detail
Layer has no objects PURGE Removes the empty layer
Two layers share a purpose LAYMRG Objects move to target layer
Blocks imported extra layers PURGE Removes block defs + layers
Xref layers cluttering list Detach xref Then PURGE freed layers
Full standards cleanup LAYMRG → PURGE ×2 Merge first, purge second

Question 1 of 5

Which command removes layers that have no objects on them?

Question 2 of 5

You want to combine Wall-Interior and Wall-Exterior into a single layer called Walls. What should you do first?

Question 3 of 5

Why should you run PURGE more than once on a drawing?

Question 4 of 5

After using LAYMRG, all objects from the source layer inherit the target layer's properties. This is true only when those properties are set to:

Question 5 of 5

Which of the following layers cannot be purged under any circumstances?