---
name: "rpma_conn_delete"
section: "3"
platform: "linux"
package: "librpma-dev"
version: "1.3.0-2+b3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rpma_conn_delete"
---

# rpma\_conn\_delete(3)

delete already closed connection

## NAME

**rpma\_conn\_delete** - delete already closed connection

## SYNOPSIS

```
      #include <librpma.h>
      struct rpma_conn;
      int rpma_conn_delete(struct rpma_conn **conn_ptr);
```

## DESCRIPTION

**rpma\_conn\_delete**() deletes already closed connection.

## RETURN VALUE

The **rpma\_conn\_delete**() function returns 0 on success or a negative error code on failure. **rpma\_conn\_delete**() sets \*conn\_ptr value to NULL on success and on failure.

## ERRORS

**rpma\_conn\_delete**() can fail with the following errors:

- •

  RPMA\_E\_INVAL - conn\_ptr is NULL or **munmap**() failed

- •

  RPMA\_E\_PROVIDER - **ibv\_destroy\_cq**() or **rdma\_destroy\_id**() failed

## SEE ALSO

[**rpma\_conn\_disconnect**(3)](/rpma_conn_disconnect/3.md), [**rpma\_conn\_req\_connect**(3)](/rpma_conn_req_connect/3.md), [**librpma**(7)](/librpma/7.md) and https://pmem.io/rpma/
