# dlclose

Removes dllib object.

## Syntax

* dllib\_delete(h)
* delete(h)
* dlclose(h)

## Input argument

* h - a handle: an dllib object.

## Description

dlclose(h) or delete(h) releases dllib object.

Do not forget to clear h afterward.

## Example

```matlab
path_ref = modulepath('dynamic_link', 'builtin');
lib = dlopen(path_ref)
isvalid(lib)
dlclose(lib); // or delete(lib)
isvalid(lib)
```

## See also

[dlopen](dlopen).

## History

| Version | Description     |
| ------- | --------------- |
| 1.0.0   | initial version |

## Author

Allan CORNET
