---
name: "dpm_rmpool"
section: "3"
platform: "linux"
package: "libdpm-dev"
version: "1.10.0-2+b3"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/dpm_rmpool"
---

# dpm\_rmpool(3)

remove a disk pool definition

## NAME

dpm\_rmpool - remove a disk pool definition

## SYNOPSIS

**#include \<sys/types.h\>**\
 **#include "dpm\_api.h"**

**int dpm\_rmpool (char \****poolname***)**

## DESCRIPTION

**dpm\_rmpool** removes a disk pool definition.

- *poolname*

  specifies the disk pool name.

This function requires ADMIN privilege.

## RETURN VALUE

This routine returns 0 if the operation was successful or -1 if the operation failed. In the latter case, **serrno** is set appropriately.

## ERRORS

- **ENOENT**

  Pool does not exist.

- **EACCES**

  The caller does not have ADMIN privilege.

- **EFAULT**

  *poolname* is a NULL pointer.

- **EEXIST**

  Space token still associated with *poolname*.

- **EINVAL**

  The length of *poolname* exceeds **CA\_MAXPOOLNAMELEN**.

- **SENOSHOST**

  Host unknown.

- **SEINTERNAL**

  Database error.

- **SECOMERR**

  Communication error.
