---
UID: NF:chptrarr.CHPtrArray.RemoveAll
title: CHPtrArray::RemoveAll (chptrarr.h)
description: The RemoveAll method removes all the CHPtrArray members from this array.
old-location: wmi\chptrarray_removeall.htm
tech.root: WmiSdk
ms.assetid: 51de0ff1-e8e9-4484-80d6-51179ef82a51
ms.date: 12/05/2018
ms.keywords: ?RemoveAll@CHPtrArray@@QAEXXZ, CHPtrArray interface [Windows Management Instrumentation],RemoveAll method, CHPtrArray.RemoveAll, CHPtrArray::RemoveAll, RemoveAll, RemoveAll method [Windows Management Instrumentation], RemoveAll method [Windows Management Instrumentation],CHPtrArray interface, chptrarr/CHPtrArray::RemoveAll, wmi.chptrarray_removeall
f1_keywords:
- chptrarr/CHPtrArray.RemoveAll
dev_langs:
- c++
req.header: chptrarr.h
req.include-header: FwCommon.h
req.target-type: Windows
req.target-min-winverclnt: Windows Vista
req.target-min-winversvr: Windows Server 2008
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: FrameDyn.lib
req.dll: FrameDynOS.dll; FrameDyn.dll
req.irql: 
topic_type:
- APIRef
- kbSyntax
api_type:
- DllExport
api_location:
- FrameDynOS.dll
- FrameDyn.dll
api_name:
- CHPtrArray.RemoveAll
- ?RemoveAll@CHPtrArray@@QAEXXZ
targetos: Windows
req.typenames: 
req.redist: 
ms.custom: 19H1
---

# CHPtrArray::RemoveAll


## -description


<p class="CCE_Message">[The <a href="https://docs.microsoft.com/windows/desktop/api/chptrarr/nl-chptrarr-chptrarray">CHPtrArray</a> class 
    is part of the WMI Provider Framework which is now considered in final state, and no further development, 
    enhancements, or updates will be available for non-security related issues affecting these libraries. The 
    <a href="https://docs.microsoft.com/previous-versions/windows/desktop/wmi_v2/windows-management-infrastructure">MI APIs</a> should be used for all new 
    development.]

The <b>RemoveAll</b> method removes all the <a href="https://docs.microsoft.com/windows/desktop/api/chptrarr/nl-chptrarr-chptrarray">CHPtrArray</a> members from this array.


## -parameters






## -returns



This method does not return a value.




## -remarks



The <b>RemoveAll</b> method does not return an error if the array is empty.




## -see-also




<a href="https://docs.microsoft.com/windows/desktop/api/chptrarr/nl-chptrarr-chptrarray">CHPtrArray</a>



<a href="https://docs.microsoft.com/windows/desktop/WmiSdk/provider-framework-utility-classes">Provider Framework Utility Classes</a>
 

 

