IGPMGPO::Delete method (gpmgmt.h)

Deletes a Group Policy object (GPO) from the directory service and from the system volume folder (SYSVOL).

Syntax

HRESULT Delete();

Return value

JScript

Returns S_OK if successful. Returns a failure code if an error occurs.

VB

Returns S_OK if successful. Returns a failure code if an error occurs.

Remarks

This method does not delete GPO links. To delete GPO links, call the IGPMGPOLink::Delete method.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header gpmgmt.h
DLL Gpmgmt.dll

See also

IGPMGPO