# DEL
> [HTML Version](del_lit.htm)
_Rewritten May 2023_
**DEL \{switches\}**
DEL deletes a module from user memory. Modules are loaded into memory either explicitly by the LOAD command (which see for more details about user memory), or implicitly, as the result of running a program.
**Parameters**
_spec_
specifies the name.ext of the module. Note that modules loaded into user memory do not have device or PPN attributes. The wildcard \* may be used for either the name or extension; a single \* by itself is equivalent to \*.\*
**Switches**
_/unlock_ or_ /force_
clears the lock flag (set by the LOAD /lock switch), allowing the module to be deleted
**Example**
**.LOAD BAS:CSV2XL.SBX**
**.LOAD DSK2:RUNSBX.SBX\[200,1\]**
**.LOAD SYS:COPY.LIT/LOCK**
**.MAP**
PCTDVG.IFX 652 P
CSV2XL.SBX 117894 P
RUNSBX.SBX 120 P
COPY.LIT 31932 LP
Free 4290755
**.DEL**
PCTDVG.IFX
CSV2XL.SBX
RUNSBX.SBX
**.DEL COPY.\*/UNLOCK**
COPY.LIT
In the above example, we used LOAD to load three modules, one of them with the /LOCK option, and then displayed them with the MAP command. The PCVTDV.IFX module was already in memory. The DEL \* command deleted all but the locked module, while the second DEL command with the /UNLOCK switch deleted it.
**See Also:**
• [LOAD.LIT](load_lit.htm.md): load modules into memory
• [MAP.LIT](map_lit.htm.md): display memory modules and memory available
• [MEMORY.LIT](memory_lit.htm.md): change memory size
• [MX\_USRDEL](mx_usrdel.htm.md)[xs](keyword-types.htm.md): delete memory modules from with application