---
name: "rdma_destroy_ep"
section: "3"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["linux", "freebsd"]
url: "https://new.carta.tech/rdma_destroy_ep"
---

# rdma\_destroy\_ep(3)

Release a communication identifier.

## NAME

rdma\_destroy\_ep - Release a communication identifier.

## SYNOPSIS

**#include \<rdma/rdma\_cma.h\>**

**void rdma\_destroy\_ep** **(struct rdma\_cm\_id \****id***);**

## ARGUMENTS

- id

  The communication identifier to destroy.

## DESCRIPTION

Destroys the specified rdma\_cm\_id and all associated resources

## NOTES

rdma\_destroy\_ep will automatically destroy any QP and SRQ associated with the rdma\_cm\_id.

## SEE ALSO

[rdma\_create\_ep(3)](/rdma_create_ep/3.md)
