# DROP Removes Program from Memory

> Source: https://manual.pvxplus.com/directives/drop

## Format

**DROP** *prog$*\[,**ERR**=*stmtref*\]

***Where:***

|  |  |
| --- | --- |
| *prog$* | Name of the program to be unloaded from memory. String expression. |
| *stmtref* | Program line number or statement label to which to transfer control. |

## Description

Use the **DROP** directive to unload a program previously loaded into memory by the **ADDR** directive. The memory used while the program was loaded is returned to the system. PxPlus returns an Error #17: Invalid file type or contents if you use a **DROP** statement for a program that is not currently loaded in memory.

Note:  
In [Object Oriented Programming](https://manual.pvxplus.com/pxplus-user-guide/object-oriented-pxplus/introduction), DROP OBJECT can be used to delete an object and [DROP CLASS](https://manual.pvxplus.com/directives/drop-class) can be used to delete a class. See [DELETE](https://manual.pvxplus.com/directives/delete) and [DELETE OBJECT](https://manual.pvxplus.com/directives/delete-object).

## See Also

**[ADDR Load and Lock Program in Memory](https://manual.pvxplus.com/directives/addr)**

## Example

```
drop "ARDATE"
```
