Table of contents
TOC
Collapse the table of content
Expand the table of content

UWF_RegistryFilter.CommitRegistryDeletion

Last Updated: 12/12/2016

Deletes the specified registry key or registry value and commits the deletion.

Syntax

UInt32 CommitRegistryDeletion(
    string Registrykey,
    string ValueName
);

Parameters

RegistryKey
A string that contains the full path of the registry key that contains the value to be deleted. If ValueName is empty, the entire registry key is deleted.

ValueName
A string that contains the name of the value to be deleted.

Return Value

Returns an HRESULT value that indicates WMI status or a WMI error.

Remarks

If ValueName is specified, this method will delete only the value specified by ValueName that is contained by RegistryKey. If ValueName is empty, the entire RegistryKey and all its sub keys are deleted.

This method deletes the registry key or registry value from both the overlay and the persistent storage.

You must use an administrator account to change any properties or call any methods that change the configuration settings.

Requirements

Windows EditionSupported
Windows 10 HomeNo
Windows 10 ProNo
Windows 10 EnterpriseYes
Windows 10 EducationYes

UWF_RegistryFilter

Unified Write Filter

Send comments about this topic to Microsoft

© 2017 Microsoft