My game won't run when I get rid of unwanted files.

So I was going through my project's files and discovered that I had a lot of files that I didn't need, but when I deleted one, the game won't run.

Worse yet is that I deleted it using the resource manager, so it doesn't end up in my recycle bin, and therefore I can't restore it.

So does anyone know how to get rid of unwanted files without the engine getting wound up? That’d be great, thanks.

(Update: I've been able to fix it by replacing with a blank file of the same name, but it's still taking up space)
Back up your project before haphazardly deleting random files. On the bright side, it looks like you are just missing a profile image, hopefully.
Back up your project before haphazardly deleting random files. On the bright side, it looks like you are just missing a profile image, hopefully.
Well I am, but now it's gone for good. Also where should I back it up to?
Also where should I back it up to?
...anywhere you like? Right-click and drag the project folder and make a copy.

A few additional notes.
1 - If you're using any plugins, it's pretty well known that you should not try to exclude unused files. Plugins generally do not register any files referenced in the plugin parameters, nor in code you may put in notetags. So exclude will delete files that plugins may need.

2 - Your missing file has a space in it - see how it's replaced by the HTML %20. This is bad practice, as filenames that are not HTML-compatible may not load correctly on some people's systems. It's strongly recommended that you make all of your files use dashes, underscores, or camel case.
I have a folder called extra and some sub folders within, any images I create for my game go there, then a place a copy of it in the img file in the appropriate folder for my game, lately I've been getting rid of everything generic in my game (characters, monsters etc) as I don't plan to use them... (yes I know it takes more time to do it this way but...)
but when I deleted one, the game won't run.
If that happens, it means that the file is still used somewhere in the game.
so instead of replacing it, you can also look for the place it is used and remove that part from database or map or whatever, that would also remove the error by not making the engine look for the file.

Depending on when this happened, the face is either still used on an actor in the database, or in an event show text on the current map or something like that.
(Update: I've been able to fix it by replacing with a blank file of the same name, but it's still taking up space)
Just thinking out loud. Since this shows up on the title screen, isn't it one of the actors that uses the false reference? Perhaps you can check your actor slots and hit DELETE on the seemingly empty slots.
If that happens, it means that the file is still used somewhere in the game.
so instead of replacing it, you can also look for the place it is used and remove that part from database or map or whatever, that would also remove the error by not making the engine look for the file.

Depending on when this happened, the face is either still used on an actor in the database, or in an event show text on the current map or something like that.
It's ok, as I said earlier, I tricked the system by replacing the missing file with a random one with the same name, so it runs ok now.
I tricked the system by replacing the missing file
that doesn't change the fact that it is still used somewhere, and when the game gets to that point the player will see that "random picture" instead of the face set there originally

Original thread: https://forums.rpgmakerweb.com/threads/my-game-wont-run-when-i-get-rid-of-unwanted-files.160089/