Deleting Sounds After Silence

There is silence towards the end of some songs and when the silence ends, an unwanted sound starts again. When I make a command to delete the beginning or the end of a sound, it does not take into account the silence in the middle. Or there are commands like “delete silence”, these do not work for me; because I want to delete the silence and all the sounds after it. In other words, not the silence in between or the silence at the end. And I need to do this process for more than one song. For example, at the end of the song in the visual, the music ends and there is silence for a while. At the end of this silence, there is the intro of another song. I have hundreds of songs like this. I need to be collectively composed of those sounds at the end.

One way might be to use labels, if you have “silent” intervals of 2 seconds or so between the songs. By silent, I mean where the signal level drops away to peak below about -27dB.
I think the default settings on the labeller would work OK thus:
Import the track
Use Analyse\Label Sounds… to create the label track
Select the Label track and Tab to the second label
Check that it does actually embrace the sound you want to remove, without cutting off the tail of the song you want to keep
Delete the unwanted sound and then the label track.
You may have to experiment to get reliable results.
Then you might be able to build a macro to automate at least part of the process.