## Name

UNLINK — Unlink memory module

## Synopsis

`unlink` `modname` {`modname`}

## Description

Tells OS-9 that the memory module(s) named are no longer needed by the user. The module(s) may or may not be destroyed and their memory reassigned, depending on if in use by other processes or user, whether resident in ROM or RAM, etc.

It is good practice to unload modules whenever possible to make most efficient use of available memory resources.

Warning: never unlink a module you did not load or link to.

For more information see: the section called “Basic Memory Management Functions”, the section called “Loading Program Modules Into Memory”, the section called “Loading Multiple Programs”

## Examples

    unlink pgml pgm5 pgm99

    OS9: mdir

       Module Directory at 11:26:22
    DCB4        D0          D1          D2          D3
    OS9P2       INIT        OS9         IOMAN       RBF
    SCF         ACIA        TERM        T1          T2
    T3          P           PIA         Sysgo       Clock
    Shell       Tsmon       Edit

    OS9: unlink edit
    OS9: mdir

       Module Directory at 11:26:22
    DCB4        D0          D1          D2          D3
    OS9P2       INIT        OS9         IOMAN       RBF
    SCF         ACIA        TERM        T1          T2
    T3          P           PIA         Sysgo       Clock
    Shell       Tsmon