---
name: "rdma_destroy_qp"
section: "3"
platform: "linux"
package: "rdma-core"
version: "65.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux", "freebsd"]
url: "https://new.carta.tech/rdma_destroy_qp"
---

# rdma\_destroy\_qp(3)

Deallocate a QP.

## NAME

rdma\_destroy\_qp - Deallocate a QP.

## SYNOPSIS

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

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

## ARGUMENTS

- id

  RDMA identifier.

## DESCRIPTION

Destroy a QP allocated on the rdma\_cm\_id.

## NOTES

Users must destroy any QP associated with an rdma\_cm\_id before destroying the ID.

## SEE ALSO

[rdma\_create\_qp(3)](/rdma_create_qp/3.md), [rdma\_destroy\_id(3)](/rdma_destroy_id/3.md), [ibv\_destroy\_qp(3)](/ibv_destroy_qp/3.md)
