How to retrieve from a TM all the segments belonging to a particular source file or target file?

Hello,

We have a particular TM that contains texts of various laws and regulations.

Every now and then, a given law gets modified, updated.

How can I search a TM by source file name/target file name in order to retrieve all the segments and delete them so I can then align the source and target texts of an updated law?

Thanks in advance for your help. Christian