IGroupPolicyObject::Delete method

The Delete method deletes the GPO.

Syntax


HRESULT Delete();

Parameters

This method has no parameters.

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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Gpedit.h

DLL

Gpedit.dll

IID

IID_IGroupPolicyObject is defined as EA502723-A23D-11d1-A7D3-0000F87571E3

See also

Group Policy Overview
Group Policy Interfaces
IGroupPolicyObject
Save

 

 

Show:
© 2014 Microsoft