# pool.remove

Remove a disk from pool of id id.

label is the vdev guid or device name.

Error codes:

> EZFS_NOSPC(2032): out of space to remove a device EZFS_NODEVICE(2017): no such device in pool EZFS_NOREPLICAS(2019): no valid replicas

This method is a job.

Type: object

##

Type: array
No Additional Items

#### Tuple Validation

##### Parameter 1: id

#### id

Type: integer

ID of the pool to remove a disk from.

##### Parameter 2: options

#### options

Type: object

Disk identifier to remove from the pool.

No Additional Properties

##

#### Label

Type: string

The vdev guid or device name.

##

#### Result

Type: null

Returns `null` on successful disk removal.

Required roles: POOL_WRITE