Back to Wsl

WslcDeleteContainer

doc/docs/api-reference/c/container-apis/wslcdeletecontainer.md

2.9.4492 B
Original Source

WslcDeleteContainer

c
STDAPI WslcDeleteContainer(_In_ WslcContainer container, _In_ WslcDeleteContainerFlags flags, _Outptr_opt_result_z_ PWSTR* errorMessage);
ParameterTypeDirection
containerWslcContainerin
flagsWslcDeleteContainerFlagsin
errorMessagePWSTR*out, optional

Return value: HRESULT.

Example:

c
HRESULT hr = WslcDeleteContainer(
    container,
    WSLC_DELETE_CONTAINER_FLAG_FORCE,
    NULL);