is there a way to remove unused file/assets safely for rpg maker mz?

hi there, I never think of this before, I try to collect free assets and put it to my project, and suddenly I try some rpg game that has tiny filesize, so I think about it and look at my project. My game has a big filesize around 700 MB. I want to make my game small by deleting unused files. I did it manually but it turn to crash. Is there a way or tool to do it more easier?

I'm googling this and found for MV while my game is MZ.

this tool look awesome but sadly it for MV, looking for tool like this for mz
you also have the option to exclude unused files on deployment.
this works for regular games but unfortunately counts files used only by plugins as unused.
you can work around this by creating an unused map and use the resources in events on that map, that counts to the editor as in use even if the player can never enter that map and you're using those resources in plugins.
you also have the option to exclude unused files on deployment.
this works for regular games but unfortunately counts files used only by plugins as unused.
you can work around this by creating an unused map and use the resources in events on that map, that counts to the editor as in use even if the player can never enter that map and you're using those resources in plugins.
Therefore, I strongly advise against it, it is best to do it by hand calmly.
you also have the option to exclude unused files on deployment.
this works for regular games but unfortunately counts files used only by plugins as unused.
you can work around this by creating an unused map and use the resources in events on that map, that counts to the editor as in use even if the player can never enter that map and you're using those resources in plugins.
You've said it, my game got error by doing it.

I'll do it manual like @fizzly said. Calmly.
thanks for help, really appreciated it <3
There's a plugin that comes bundled with the program where you can define resources used by plugins that'll include them in the "exclude unused files" option.

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-way-to-remove-unused-file-assets-safely-for-rpg-maker-mz.150955/