How can i remove all the assets that I don't use in a game before packaging the project?

I’m finalizing my game and I want to package it.
There is a way to remove in a single action all the assets that I don’t use in the project? Something that clean up the project decreasing the weight of the package.