---
name: "rpma_srq_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_srq_delete"
---

# rpma\_srq\_delete(3)

delete the shared RQ object

## NAME

**rpma\_srq\_delete** - delete the shared RQ object

## SYNOPSIS

```
      #include <librpma.h>
      struct rpma_srq;
      int rpma_conn_req_delete(struct rpma_srq **srq_ptr);
```

## DESCRIPTION

**rpma\_srq\_delete**() deletes the shared RQ object.

## RETURN VALUE

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

## ERRORS

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

- •

  RPMA\_E\_INVAL - srq\_ptr is NULL

- •

  RPMA\_E\_PROVIDER - [**ibv\_destroy\_cq**(3)](/ibv_destroy_cq/3.md), [**ibv\_destroy\_comp\_channel**(3)](/ibv_destroy_comp_channel/3.md), or [**ibv\_destroy\_srq**(3)](/ibv_destroy_srq/3.md) failed

## SEE ALSO

[**rpma\_srq\_new**(3)](/rpma_srq_new/3.md), [**rpma\_srq\_get\_rcq**(3)](/rpma_srq_get_rcq/3.md), [**librpma**(7)](/librpma/7.md) and https://pmem.io/rpma/
