# MX\_USRDEL
> [HTML Version](mx_usrdel.htm)
**xcall MIAMEX, MX\_USRDEL, idx, name \{,flags\}**
MX\_USRDEL (MIAMEX 109) allows you to delete a module from user memory.
**Parameters**
_idx_ ([Num](num.htm.md))
will return the index entry number of the deleted module, if successful, or 0 if not deleted.
_name_
should be set to the name and extension of the module to delete (e.g. "EMAILX.SBX").
_flags_ ([Num](num.htm.md))
may be set to USRMEM\_UNLOCK to allow deletion of a module that is locked in memory.
**See Also**
• The notes under [MX\_USRMAP](mx_usrmap.htm.md) for more information on A-Shell’s user memory architecture.
• [DEL.LIT](del_lit.htm.md), which is the typical way to delete a module from memory.
• [MX\_SETMEMFLAGS](mx_setmemflags.htm.md)