# How to clear the cache of a WebBrowser Widget

**URL:** <https://forums.unrealengine.com/t/how-to-clear-the-cache-of-a-webbrowser-widget/371070>\
**Category:** UI\
**Tags:** webbrowser, unreal-engine, Widget, question\
**Created:** [September 20, 2016, 1:56pm UTC](https://forums.unrealengine.com/t/how-to-clear-the-cache-of-a-webbrowser-widget/371070 "2016-09-20T13:56:11Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_a3e52703](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a3e52703](https://forums.unrealengine.com/u/anonymous_user_a3e52703)\
**Post date:** [September 20, 2016, 1:56pm UTC](https://forums.unrealengine.com/t/how-to-clear-the-cache-of-a-webbrowser-widget/371070/1 "2016-09-20T13:56:11Z")

</div>

Is it possible to clear the cache of a [WebBrowser](https://docs.unrealengine.com/latest/INT/Engine/UMG/UserGuide/WidgetTypeReference/WebBrowser/)? If so: How?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![AlatristeCraig](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AlatristeCraig](https://forums.unrealengine.com/u/AlatristeCraig)\
**Post date:** [December 30, 2016, 3:37pm UTC](https://forums.unrealengine.com/t/how-to-clear-the-cache-of-a-webbrowser-widget/371070/2 "2016-12-30T15:37:45Z")

</div>

I want to know this too!

---

<div class="post-metadata">

**Author:** ![DunkenKBliths](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DunkenKBliths](https://forums.unrealengine.com/u/DunkenKBliths)\
**Post date:** [January 29, 2017, 10:41pm UTC](https://forums.unrealengine.com/t/how-to-clear-the-cache-of-a-webbrowser-widget/371070/3 "2017-01-29T22:41:01Z")

</div>

Me too…very frustrating for checking changes made to a web page to see if it looks ok !!!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_90f2b8f51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_90f2b8f51](https://forums.unrealengine.com/u/anonymous_user_90f2b8f51)\
**Post date:** [February 23, 2017, 5:24am UTC](https://forums.unrealengine.com/t/how-to-clear-the-cache-of-a-webbrowser-widget/371070/4 "2017-02-23T05:24:27Z")

</div>

Really hope someone answers this!

---

<div class="post-metadata">

**Author:** ![TomSmithGR](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TomSmithGR](https://forums.unrealengine.com/u/TomSmithGR)\
**Post date:** [May 26, 2017, 4:06pm UTC](https://forums.unrealengine.com/t/how-to-clear-the-cache-of-a-webbrowser-widget/371070/5 "2017-05-26T16:06:01Z")

</div>

close unreal, go into the project folder projectname\saved\webcache, and delete everything in there.

---

<div class="post-metadata">

**Author:** ![AlatristeCraig](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AlatristeCraig](https://forums.unrealengine.com/u/AlatristeCraig)\
**Post date:** [May 26, 2017, 4:10pm UTC](https://forums.unrealengine.com/t/how-to-clear-the-cache-of-a-webbrowser-widget/371070/6 "2017-05-26T16:10:24Z")

</div>

Thanks you so much!

Throwing a few ideas, this could be automated using C++, and support for a “no-cache” mode that does this could be made1

---

<div class="post-metadata">

**Author:** ![Nachtmahr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nachtmahr](https://forums.unrealengine.com/u/Nachtmahr)\
**Post date:** [May 26, 2017, 4:17pm UTC](https://forums.unrealengine.com/t/how-to-clear-the-cache-of-a-webbrowser-widget/371070/7 "2017-05-26T16:17:50Z")

</div>

Do it yourself. Not that Hard. [A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums](https://wiki.unrealengine.com/File_Management,_Create_Folders,_Delete_Files,_and_More)

---

<div class="post-metadata">

**Author:** ![chris-gong](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chris-gong/32/1106462_2.png) [@chris-gong](https://forums.unrealengine.com/u/chris-gong)\
**Post date:** [March 13, 2020, 2:12am UTC](https://forums.unrealengine.com/t/how-to-clear-the-cache-of-a-webbrowser-widget/371070/8 "2020-03-13T02:12:50Z")

</div>

Although I think deleting the directory programmatically is a good idea. I have found that calling either `IPlatformFile::DeleteDirectory` or `IPlatformFile::DeleteDirectoryRecursively` fails on the webcache folder because the game/application uses files in the directory while it’s running.

---

<div class="post-metadata">

**Author:** ![Wychao02](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Wychao02](https://forums.unrealengine.com/u/Wychao02)\
**Post date:** [May 24, 2022, 2:24am UTC](https://forums.unrealengine.com/t/how-to-clear-the-cache-of-a-webbrowser-widget/371070/9 "2022-05-24T02:24:40Z")

</div>

Hi，How to run in no-cache mode？thanks.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9b99ada1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9b99ada1](https://forums.unrealengine.com/u/anonymous_user_9b99ada1)\
**Post date:** [September 16, 2022, 3:01pm UTC](https://forums.unrealengine.com/t/how-to-clear-the-cache-of-a-webbrowser-widget/371070/10 "2022-09-16T15:01:27Z")

</div>

Hi,  
After a lot of struggle, I was successfully able to clear the browser cookies from the game. A little bit of c++ coding will be needed in this case.

> > Add WebBrowser module in your build.cs file  
> > Create a c++ class blueprint library  
> > import the following classes

```auto
#include "IWebBrowserCookieManager.h"
#include "IWebBrowserSingleton.h"
#include "WebBrowserModule.h"

```

> > Make a blueprint callable function and paste the following code:

```auto
IWebBrowserSingleton* WebBrowserSingleton = IWebBrowserModule::Get().GetSingleton();
    if (WebBrowserSingleton)
    {
        TSharedPtr<IWebBrowserCookieManager> CookieManager = WebBrowserSingleton->GetCookieManager();
        if (CookieManager.IsValid())
        {
            CookieManager->DeleteCookies();
        }
    }

```

> > Call this function from your blueprint anywhere.

---

<div class="post-metadata">

**Author:** ![startechnology19](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/startechnology19/32/1204465_2.png) [@startechnology19](https://forums.unrealengine.com/u/startechnology19)\
**Post date:** [August 27, 2026, 12:44pm UTC](https://forums.unrealengine.com/t/how-to-clear-the-cache-of-a-webbrowser-widget/371070/11 "2026-08-27T12:44:16Z")

</div>

Recommend a high-performance web UI solution for UE5: WebNativeBrowser. Based on Chromium kernel, GPU accelerated rendering, supports Windows/Linux/ARM64 three platforms.  
JS ↔ Blueprint bidirectional message channel, the front-end can directly embed pages generated by Vue, React, or even AI into UE. For digital twin and gaming tool projects, the development efficiency is significantly improved by doing business on the web side and scenario on the UE side. Git Serch use plugins: [starTechnology1994/uewebbrowser]

---

<div class="post-metadata">

**Author:** ![UE1xxrr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UE1xxrr](https://forums.unrealengine.com/u/UE1xxrr)\
**Post date:** [September 7, 2026, 11:40am UTC](https://forums.unrealengine.com/t/how-to-clear-the-cache-of-a-webbrowser-widget/371070/12 "2026-09-07T11:40:55Z")

</div>

you can serch webnativebrowser
