# How To Remove weak\_map From Project

**URL:** <https://forums.unrealengine.com/t/how-to-remove-weak-map-from-project/2325019>\
**Category:** Issues and Bug Reporting\
**Tags:** unreal-engine, unreal-editor-for-fortnite, fortnite\
**Created:** [February 10, 2025, 1:20am UTC](https://forums.unrealengine.com/t/how-to-remove-weak-map-from-project/2325019 "2025-02-10T01:20:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![IntrepidNeon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IntrepidNeon](https://forums.unrealengine.com/u/IntrepidNeon)\
**Post date:** [February 10, 2025, 1:20am UTC](https://forums.unrealengine.com/t/how-to-remove-weak-map-from-project/2325019/1 "2025-02-10T01:20:24Z")

</div>

**Issue: Accidental Weak\_Map Allocation Stuck in My UEFN Project**

I was working on a leaderboard system for one of my UEFN maps and experimented with a **weak\_map** data structure. Before getting too deep into it, I realized weak\_map wouldn’t work for my needs. However, I left the declaration in my file, thinking I might use it later.

Unfortunately, I didn’t realize that once I published that version, the weak\_map allocation would be permanently tied to my project. Since UEFN only allows two weak\_maps per project, I really don’t want my early prototype taking up one of those spots—especially since it has never been used and holds no data.

**My Question:**  
Is there any way to remove the unused weak\_map from my project, either through Unreal/Epic support or some other method? Since it’s never been accessed, there would be no data loss—just a cleanup of an unnecessary allocation.

I’d really appreciate any guidance on this. Thanks in advance!

---

<div class="post-metadata">

**Author:** ![IntrepidNeon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IntrepidNeon](https://forums.unrealengine.com/u/IntrepidNeon)\
**Post date:** [February 10, 2025, 1:40am UTC](https://forums.unrealengine.com/t/how-to-remove-weak-map-from-project/2325019/2 "2025-02-10T01:40:27Z")

</div>

Quick update, I attempted to enact a theory I came up with. That being to roll back my published version to one without the weak\_map. I was able to validate the project without the weak\_map afterward. I’m seeing now if publishing goes smoothly.

---

<div class="post-metadata">

**Author:** ![Mineblo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mineblo/32/1203575_2.png) [@Mineblo](https://forums.unrealengine.com/u/Mineblo)\
**Post date:** [February 10, 2025, 2:21am UTC](https://forums.unrealengine.com/t/how-to-remove-weak-map-from-project/2325019/3 "2025-02-10T02:21:06Z")

</div>

Interesting, If you actually managed to reset weak\_map allocation that would be huge, write if it ends up working or not.

---

<div class="post-metadata">

**Author:** ![IntrepidNeon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IntrepidNeon](https://forums.unrealengine.com/u/IntrepidNeon)\
**Post date:** [February 10, 2025, 3:15am UTC](https://forums.unrealengine.com/t/how-to-remove-weak-map-from-project/2325019/4 "2025-02-10T03:15:00Z")

</div>

It worked.

---

<div class="post-metadata">

**Author:** ![Mineblo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mineblo/32/1203575_2.png) [@Mineblo](https://forums.unrealengine.com/u/Mineblo)\
**Post date:** [February 10, 2025, 3:25am UTC](https://forums.unrealengine.com/t/how-to-remove-weak-map-from-project/2325019/5 "2025-02-10T03:25:23Z")

</div>

That’s just lovely. Hopefully they add some official way to do something like this too

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [August 9, 2025, 1:21am UTC](https://forums.unrealengine.com/t/how-to-remove-weak-map-from-project/2325019/6 "2025-08-09T01:21:01Z")

</div>

This topic was automatically closed after 113 days. New replies are no longer allowed.
