# mcorest_destroy

> Destroy the `MCO REST` server instance.

### For an overview see page Web Services

### Prototype

      MCO_RET mcorest_destroy(mcorest_h rest);

### Arguments

rest | Server instance handle

### Description

> This function destroys the `MCO REST` server instance. The server may only be destroyed by the same thread that created it.

### Return Codes

MCO_S_OK = 0 | Success
MCO_E_REST_* | Any of the Web Services Error Codes

### Files

Header file:
mcorest.h
Source file:
mcorest.c
Library:
libmcorest.a