1.\"
2.\" CDDL HEADER START
3.\"
4.\" The contents of this file are subject to the terms of the
5.\" Common Development and Distribution License (the "License").
6.\" You may not use this file except in compliance with the License.
7.\"
8.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9.\" or https://opensource.org/licenses/CDDL-1.0.
10.\" See the License for the specific language governing permissions
11.\" and limitations under the License.
12.\"
13.\" When distributing Covered Code, include this CDDL HEADER in each
14.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15.\" If applicable, add the following below this CDDL HEADER, with the
16.\" fields enclosed by brackets "[]" replaced with your own identifying
17.\" information: Portions Copyright [yyyy] [name of copyright owner]
18.\"
19.\" CDDL HEADER END
20.\"
21.\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
22.\" Copyright (c) 2012, 2018 by Delphix. All rights reserved.
23.\" Copyright (c) 2012 Cyril Plisko. All Rights Reserved.
24.\" Copyright (c) 2017 Datto Inc.
25.\" Copyright (c) 2018 George Melikov. All Rights Reserved.
26.\" Copyright 2017 Nexenta Systems, Inc.
27.\" Copyright (c) 2017 Open-E, Inc. All Rights Reserved.
28.\"
29.Dd March 16, 2022
30.Dt ZPOOL-DESTROY 8
31.Os
32.
33.Sh NAME
34.Nm zpool-destroy
35.Nd destroy ZFS storage pool
36.Sh SYNOPSIS
37.Nm zpool
38.Cm destroy
39.Op Fl f
40.Ar pool
41.
42.Sh DESCRIPTION
43Destroys the given pool, freeing up any devices for other use.
44This command tries to unmount any active datasets before destroying the pool.
45.Bl -tag -width Ds
46.It Fl f
47Forcefully unmount all active datasets.
48.El
49.
50.Sh EXAMPLES
51.\" These are, respectively, examples 7 from zpool.8
52.\" Make sure to update them bidirectionally
53.Ss Example 1 : No Destroying a ZFS Storage Pool
54The following command destroys the pool
55.Ar tank
56and any datasets contained within:
57.Dl # Nm zpool Cm destroy Fl f Ar tank
58