---
name: "NWClearConnectionNumber"
section: "3ncp"
platform: "linux"
package: "libncp-dev"
version: "2.2.6-9"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/NWClearConnectionNumber"
---

# NWClearConnectionNumber(3ncp)

Logs out the specified connection

## NAME

NWClearConnectionNumber - Logs out the specified connection

## SYNOPSIS

**#include \<nwcalls.h\>**

**NWCCODE NWClearConnectionNumber(NWCONN\_HANDLE** *conn***, NWCONN\_NUM** *num***);**

## DESCRIPTION

This function logs out specified connection from server. You must have *SUPERVISOR* rights to server.

**conn**

**conn** contains connection handle obtained from *ncp\_open*(3ncp) or *NWParsePath*(3ncp).

**num**

**num** contains connection number.

## RETURN VALUE

Function returns **zero** on success and **non-zero** on failure.

- **NWE\_CONSOLE\_NO\_PRIV**

  You have not enough rights.

  See [*nwerrors*(3ncp)](/nwerrors/3ncp.md) for complete list of  error codes.

## BUGS

None known.

## SEE ALSO

[**nwerrors**(3ncp)](/nwerrors/3ncp.md)
