Deleting registry entries

How is it possible to delete a key value pair in the registry with wdf?

I found: ZwDeleteValueKey(WdfRegistryWdmGetHandle(SubKeyRegKey), regValueName);