ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / Map Class / ClearFeatureCacheAsync Method / ClearFeatureCacheAsync(Boolean) Method
Show a toast notification when the cache operation is complete.

ClearFeatureCacheAsync(Boolean) Method
Empties the feature cache for all web feature layers (feature services) in the map.
Syntax
public Task ClearFeatureCacheAsync( 
   bool showNotification
)

Parameters

showNotification
Show a toast notification when the cache operation is complete.
Exceptions
ExceptionDescription
Emptying the feature cache is only allowed on the active map.
Emptying the feature cache is not allowed during an edit session.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 3.0 or higher.
See Also