IGroupPolicyObject::Delete method (gpedit.h)
The Delete method deletes the GPO.
Syntax
HRESULT Delete();
Return value
If the function succeeds, the return value is S_OK. Otherwise, the function returns one of the COM error codes defined in the Platform SDK header file WinError.h.
Remarks
After calling this method, you cannot call other methods of the IGroupPolicyObject interface because all data has been deleted for the GPO.
Note A policy refresh will not automatically be triggered when the local Group Policy object is deleted using the Delete method.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | gpedit.h |
DLL | Gpedit.dll |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for