---
UID: NF:clusapi.DeleteClusterGroupSet
title: DeleteClusterGroupSet function (clusapi.h)
description: Deletes the specified groupset from the cluster.
old-location: mscs\deleteclustergroupcollection.htm
tech.root: MsCS
ms.assetid: 8787d61b-7a80-404c-985f-1ad4ba01acf0
ms.date: 12/05/2018
ms.keywords: DeleteClusterGroupSet, DeleteClusterGroupSet function [Failover Cluster], PCLUSAPI_DELETE_CLUSTER_GROUP_GROUPSET, PCLUSAPI_DELETE_CLUSTER_GROUP_GROUPSET function [Failover Cluster], clusapi/DeleteClusterGroupSet, clusapi/PCLUSAPI_DELETE_CLUSTER_GROUP_GROUPSET, mscs.deleteclustergroupcollection
f1_keywords:
- clusapi/DeleteClusterGroupSet
dev_langs:
- c++
req.header: clusapi.h
req.include-header: 
req.target-type: Windows
req.target-min-winverclnt: None supported
req.target-min-winversvr: Windows Server 2016
req.kmdf-ver: 
req.umdf-ver: 
req.ddi-compliance: 
req.unicode-ansi: 
req.idl: 
req.max-support: 
req.namespace: 
req.assembly: 
req.type-library: 
req.lib: ClusAPI.lib
req.dll: ClusAPI.dll
req.irql: 
topic_type:
- APIRef
- kbSyntax
api_type:
- DllExport
api_location:
- ClusAPI.dll
api_name:
- DeleteClusterGroupSet
targetos: Windows
req.typenames: 
req.redist: 
ms.custom: 19H1
---

# DeleteClusterGroupSet function


## -description


Deletes the specified groupset from the cluster. The groupset must contain no groups.


## -parameters




### -param hGroupSet [in]

A handle to the collection to be deleted


## -returns



If the operation succeeds, the function returns <b>ERROR_SUCCESS</b>.

If the operation fails, 
the function returns a <a href="https://docs.microsoft.com/windows/desktop/Debug/system-error-codes">system error code</a>.



