# Can't delete certain files in UE4 editor 4.22 (assertion failed)

**URL:** <https://forums.unrealengine.com/t/cant-delete-certain-files-in-ue4-editor-4-22-assertion-failed/452625>\
**Category:** Community & Industry Discussion\
**Tags:** delete, corrupt, unreal-engine, crash, file, bug-report, question\
**Created:** [July 22, 2019, 5:10am UTC](https://forums.unrealengine.com/t/cant-delete-certain-files-in-ue4-editor-4-22-assertion-failed/452625 "2019-07-22T05:10:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lightres](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lightres](https://forums.unrealengine.com/u/lightres)\
**Post date:** [July 22, 2019, 5:10am UTC](https://forums.unrealengine.com/t/cant-delete-certain-files-in-ue4-editor-4-22-assertion-failed/452625/1 "2019-07-22T05:10:27Z")

</div>

Hey there. Thanks for viewing my question. I have been working with Ue4 for a while now and suddenly near the end of a project i am working on, it has begun crashing a lot which i intend to ask about in another question. During the time it started crashing a lot I noticed there were some leftover assets from a project I imported from the Marketplace that have been sitting there for a while. When I try to delete them I get the message:

_World /Game/AdvancedMagicFX08/Maps/Overview.Overview is in use._

_Running the editor with ‘-NoLoadStartupPackages’ may help if the object is loaded at startup._

_External referencers of World /Game/AdvancedMagicFX08/Maps/Overview.Overview:  
GCObjectReferencer /Engine/Transient.GCObjectReferencer\_0 (root) (28)  
0) [[native reference]]  
1) [[native reference]]  
2) [[native reference]]  
3) [[native reference]]  
4) [[native reference]]  
5) [[native reference]]  
6) [[native reference]]  
7) [[native reference]]  
8) [[native reference]]  
9) [[native reference]]  
10) [[native reference]]  
11) [[native reference]]  
12) [[native reference]]  
13) [[native reference]]  
14) [[native reference]]  
15) [[native reference]]  
16) [[native reference]]  
17) [[native reference]]  
18) [[native reference]]  
19) [[native reference]]  
20) [[native reference]]  
21) [[native reference]]  
22) [[native reference]]  
23) [[native reference]]  
24) [[native reference]]  
25) [[native reference]]  
26) [[native reference]]  
27) [[native reference]]_

Shortest reachability from root to World /Game/AdvancedMagicFX08/Maps/Overview.Overview:  
World /Game/AdvancedMagicFX08/Maps/Overview.Overview [target] (standalone)

**This is the error I have been getting in case it may have any accordance, because when I try deleting the files through Windows Explorer I get the same crash every single time when starting up the project.**

Assertion failed: [File:D:\Build++UE4\Sync\Engine\Source\Runtime\Windows\D3D11RHI\Private\D3D11Util.cpp] [Line: 249] Result failed at D:\Build++UE4\Sync\Engine\Source\Runtime\Windows\D3D11RHI\Private\D3D11Viewport.cpp:361 with error E\_INVALIDARG

Thank you for your time.

---

<div class="post-metadata">

**Author:** ![g0n](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/g0n/32/632978_2.png) [@g0n](https://forums.unrealengine.com/u/g0n)\
**Post date:** [October 1, 2019, 9:54pm UTC](https://forums.unrealengine.com/t/cant-delete-certain-files-in-ue4-editor-4-22-assertion-failed/452625/2 "2019-10-01T21:54:47Z")

</div>

Had exactly the same problem deleting some maps.  
In Windows10 I went to the root folder of my project, wrote cmd in the top textbox so It opened a command prompt at my root projects folder. Used “XXXXX.uproject -NoLoadStartupPackages” to open my project with that flag.

Then you can remove those files with no warnings or any other problems.  
At least this worked for me.

I know its so late but until today I havent seen this warning ahead.

---

<div class="post-metadata">

**Author:** ![Natalo77](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Natalo77](https://forums.unrealengine.com/u/Natalo77)\
**Post date:** [April 21, 2020, 1:21pm UTC](https://forums.unrealengine.com/t/cant-delete-certain-files-in-ue4-editor-4-22-assertion-failed/452625/3 "2020-04-21T13:21:07Z")

</div>

I’m having exactly the same problem trying to delete a map - running the editor with the -NoLoadStartupPackages flag has not worked for me - this is really weird.

Do you have any other ideas?
