Skip to content

How to clear the cache folder when closing my application #5009

Description

@azerios

Dear,

I'm trying to clear the cache folder when I'm stopping/closing my application.

My code is the following :
Cef.ClearCrossOriginWhitelist();
Cef.ClearSchemeHandlerFactories();
Cef.PreShutdown();
Cef.Shutdown();
Directory.Delete(_cefsharpCachePath, recursive: true);

The issue is that one directory is throwing an exception as segmentation_platform and two files :
ukm_db
ukm_db-journal

How can I stop any process to using them and delete the cache folder ?

Thanks for your help

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions