pmempool_rm - Man Page

remove persistent memory pool

Synopsis

#include <libpmempool.h>

int pmempool_rm(const char *path, int flags);

Description

The pmempool_rm() function removes the pool pointed to by path. The path can point to a regular file, device dax or pool set file. If path is a pool set file, pmempool_rm() will remove all part files from replicas using unlink(2) before removing the pool set file itself.

The flags argument determines the behavior of pmempool_rm(). It is either 0 or the bitwise OR of one or more of the following flags:

Return Value

On success, pmempool_rm() returns 0. On error, it returns -1 and sets errno accordingly.

See Also

unlink(3), libpmemobj(7) and https://pmem.io\c

Referenced By

libpmempool(7).

2024-07-18 PMDK - PMDK Programmer's Manual