---
UID: NF:cmnquery.IPersistQuery.Clear
title: IPersistQuery::Clear (cmnquery.h)
description: Empties the contents of the query store.
old-location: ad\ipersistquery_clear.htm
tech.root: ad
ms.assetid: 1ce97afa-6d59-446c-9af2-595ec18db2b7
ms.date: 12/05/2018
ms.keywords: Clear, Clear method [Active Directory], Clear method [Active Directory],IPersistQuery interface, IPersistQuery interface [Active Directory],Clear method, IPersistQuery.Clear, IPersistQuery::Clear, _glines_ipersistquery_clear, ad.ipersistquery__clear, ad.ipersistquery_clear, cmnquery/IPersistQuery::Clear
f1_keywords:
- cmnquery/IPersistQuery.Clear
dev_langs:
- c++
req.header: cmnquery.h
req.include-header: 
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: Uuid.lib
req.dll: Dsquery.dll
req.irql: 
topic_type:
- APIRef
- kbSyntax
api_type:
- COM
api_location:
- Dsquery.dll
api_name:
- IPersistQuery.Clear
targetos: Windows
req.typenames: 
req.redist: 
ms.custom: 19H1
---

# IPersistQuery::Clear


## -description


The <b>IPersistQuery::Clear</b> method empties the contents of the query store.


## -parameters






## -returns



Returns <b>S_OK</b> if successful or a standard  <b>HRESULT</b> value otherwise.




## -see-also




<a href="https://docs.microsoft.com/windows/desktop/AD/display-interfaces-in-active-directory-domain-services">Display Interfaces in Active Directory Domain Services</a>



<a href="https://docs.microsoft.com/windows/desktop/api/cmnquery/nn-cmnquery-ipersistquery">IPersistQuery</a>
 

 

