If you need to clear your /usr/sap/trans directory then you can use the TP command options for this operation easily.
First of all we can use the “CHECK ALL “ option of TP command like below
Then we can use the “CLEARAOLD ALL” option of TP command to Clear old Files from the TRANS directory
Mean time CLEAROLD log file’s OUTPUT