.. versionadded:: 2018.3.0

    Removes ZFS label information from the specified device

    device : string
        Device name; must not be part of an active pool configuration.

    force : boolean
        Treat exported or foreign devices as inactive

    CLI Example:

    .. code-block:: bash

        salt '*' zpool.labelclear /path/to/dev

def labelclear(device, force=False):
    '''
    .. versionadded:: 2018.3.0

    Removes ZFS label information from the specified device

    device : string
        Device name; must not be part of an active pool configuration.

    force : boolean
        Treat exported or foreign devices as inactive

    CLI Example:

    .. code-block:: bash

        salt '*' zpool.labelclear /path/to/dev

    '''
    ## clear label for all specified device
    res = __salt__['cmd.run_all'](
        __utils__['zfs.zpool_command'](
            command='labelclear',
            flags=['-f'] if force else None,
            target=device,
        ),
        python_shell=False,
    )

    return __utils__['zfs.parse_command_result'](res, 'labelcleared')