Navigation
API > API/Plugins > API/Plugins/ShaderAuditCore
Description
Delete cached shader files (.shk, .ushaderbytecode) under the given directory. Removes only known file types, then prunes empty directories bottom-up. Can be used to clear a specific CL dir or the entire cache root.
| Name | ClearCachedSessionDir |
| Type | function |
| Header File | /Engine/Plugins/Developer/ShaderToolkit/Source/ShaderAuditCore/Public/ShaderAuditSession.h |
| Include Path | #include "ShaderAuditSession.h" |
| Source | /Engine/Plugins/Developer/ShaderToolkit/Source/ShaderAuditCore/Private/ShaderAuditSessionCache.cpp |
bool ClearCachedSessionDir
(
const FString & DirToDelete
)
true if any files were deleted.