How To Remove weak_map From Project

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!

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.

1 Like

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

It worked.

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