SAP Basis Basics Part 32
How to cleaning up the transport directory
Please clarify in advance whether you are allowed to delete the old transports. For example, it may be that they have to be kept for 10 years for audits, or a customer company policy states something similar.
1. Go to operating system and logon using sidadm
2. Run: cd /usr/sap/trans/bin
3. Run: tp check all pf=TP_DOMAIN_<SID>.PFL
4. Run: tp clearold all pf=TP_DOMAIN_<SID>.PFL
This will move more than 6 months old files from /usr/sap/trans/data to /usr/sap/trans/olddata and also will delete more than 1 year old ../cofiles and ../logs
Parameter Settings:
The minimum age of files in the transport directory that can be deleted can be set in the transport profile. The transport profile is the file ‘TPPARAM’ in the subdirectory ‘bin’ in the transport directory. The following parameters can be set (all durations are in days):
datalifetime is the minimum lifetime of the files in data
loglifetime is the minimum lifetime of the files in log
olddatalifetime is the minimum lifetime of the files in olddata
cofilelifetime is the minimum lifetime of the files in cofiles
Example:
datalifetime=30
loglifetime=60
olddatalifetime=60
cofilelifetime=30
These parameters must not be listed here system-specifically, since with the subsequent tp calls no SAP system can be entered either.
Instead you always call with the parameter ‘ALL’.
41732 — Deletion of data in transport directory:
https://me.sap.com/notes/41732/E
3471409 — How to cleaning up the transport directory:
https://me.sap.com/notes/0003471409