.\" Automatically generated by Pandoc 2.10.1 .\" .TH "PMEMPOOL-RM" "1" "2020-10-28" "PMDK - pmem Tools version 1.4" "PMDK Programmer's Manual" .hy .\" SPDX-License-Identifier: BSD-3-Clause .\" Copyright 2016-2018, Intel Corporation .SH NAME .PP \f[B]pmempool-rm\f[R] - remove a persistent memory pool .SH SYNOPSIS .IP .nf \f[C] $ pmempool rm [] .. \f[R] .fi .SH DESCRIPTION .PP The \f[B]pmempool rm\f[R] command removes each specified file. If the specified file is a pool set file, all pool files (single-file pool or part files) and remote replicas are removed. By default the \f[B]pmempool rm\f[R] does not remove pool set files. All local and remote pool files are removed using \f[B]unlink\f[R](3) call, except the pools created on \f[B]device dax\f[R] which are zeroed instead. If specified file does not exist, the remote pool is broken or not accessible, the \f[B]pmempool rm\f[R] command terminates with an error code. By default it prompts before removing \f[I]write-protected\f[R] local files. See \f[B]REMOTE REPLICATION\f[R] section for more details about support for remote pools. See \f[B]EXAMPLES\f[R] section for example usage of the \f[I]rm\f[R] command. .SS Available options: .PP \f[C]-h, --help\f[R] .PP Print help message .PP \f[C]-v, --verbose\f[R] .PP Be verbose and print all removing files. .PP \f[C]-s, --only-pools\f[R] .PP Remove only pool files and do not remove pool set files (default behaviour). .PP \f[C]-a, --all\f[R] .PP Remove all pool set files - local and remote. .PP \f[C]-l, --local\f[R] .PP Remove local pool set files. .PP \f[C]-r, --remote\f[R] .PP Remove remote pool set files. .PP \f[C]-f, --force\f[R] .PP Remove all specified files, ignore nonexistent files, never prompt. .PP \f[C]-i, --interactive\f[R] .PP Prompt before removing every single file or remote pool. .SH REMOTE REPLICATION .PP A remote pool is removed using \f[B]rpmem_remove\f[R](3) function if \f[B]librpmem\f[R](7) library is available. If a pool set file contains remote replication but \f[B]librpmem\f[R](7) is not available, the \f[B]pmempool rm\f[R] command terminates with an error code, unless the \f[B]-f, \[en]force\f[R] option is specified. .SH EXAMPLE .IP .nf \f[C] $ pmempool rm pool.obj pool.blk \f[R] .fi .PP Remove specified pool files. .IP .nf \f[C] $ pmempool rm pool.set \f[R] .fi .PP Remove all pool files from the \[lq]pool.set\[rq], do not remove \f[I]pool.set\f[R] itself. .IP .nf \f[C] $ pmempool rm -a pool.set \f[R] .fi .PP Remove all pool files from the \[lq]pool.set\[rq], remove the local pool set file and all remote pool set files. .SH SEE ALSO .PP \f[B]pmempool\f[R](1), \f[B]libpmemblk\f[R](7), \f[B]libpmemlog\f[R](7), \f[B]libpmemobj\f[R](7), \f[B]librpmem\f[R](7) and \f[B]\f[R]