CredDelete function advapi32
Deletes a credential from the user's credential set.
To learn more, see learn.microsoft.com/windows/win32/api/wincred/nf-wincred-creddeletew.
Implementation
Win32Result<bool> CredDelete(PCWSTR targetName, CRED_TYPE type) {
final result_ = CredDeleteW_Wrapper(targetName, type, NULL);
return Win32Result(value: result_.value.i32 != FALSE, error: result_.error);
}