This keeps happening. I’m on 5.1.1.
Previously I couldn’t delete a Landscape. Even if I first deleted the streaming proxies, which allows you to delete the landscape itself (it’s not even an option otherwise), the landscape would still re-appear when loading the level. I just ended up modifying the landscape to be empty (i.e. using the landscape tool “Delete”, to remove all the pieces) and renaming the landscape “IndestructibleGhostLandscape” or something. I eventually just started a new level entirely for this and other reasons.
This time, the issue is happening to all sorts of actors and assets…
A level instance, an empty folder in the world outliner, another landscape, and some random static meshes. All come back after deleting them, saving, and then loading up the level again. It’s even happening to assets I deleted from the Content Browser. I’m talking about some of those static meshes I mentioned trying the delete from the level. I also deleted the assets from the project entirely. They still come back when loading the level.
Update:
Feels stupid that this is what I had to resort to, but deleting the files with UE closed from file explorer / cmd worked. The files did not return. Of course, if you have a lot of files it can be a bit of a pain, but here’s how I did it:
- Select everything I want to delete in the world outliner in UE
- Right click and copy Actor(s) filepath
- Paste into Notepad++
- Close UE
- In Notepad++ Find and replace all "G:" with "del G:" (obviously use the start of your particular path here, mine were on the G drive)
- Find and replace all “/” with “\”
- Find and replace all “.uasset” with “.uasset /f”
- You should now have a ready to run script that will delete the listed files (i.e. the lines should be “del [filePath] /f”)
- Save as .bat and run it
- Done.