WslUnregisterDistribution function (wslapi.h)

Unregisters a distribution from the Windows Subsystem for Linux (WSL).

Syntax

HRESULT WslUnregisterDistribution(
  [in] PCWSTR distributionName
);

Parameters

[in] distributionName

Unique name representing a distribution (for example, "Fabrikam.Distro.10.01").

Return value

Returns S_OK on success, or a failing HRESULT otherwise.

Requirements

Requirement Value
Target Platform Windows
Header wslapi.h
Library Wslapi.lib
DLL Api-ms-win-wsl-api-l1-1-0.dll