cancel
Showing results for 
Search instead for 
Did you mean: 

Deleting archive files

Former Member
0 Kudos

Hi gurus,

we have been archived pi messages and we can see this with t-code al11. We would like to physically delete this files. How can we do that?

Kind Regards,

PM

Accepted Solutions (0)

Answers (3)

Answers (3)

Eoin_Kierans
Product and Topic Expert
Product and Topic Expert
0 Kudos

Please check the note #872388 'Troubleshooting Archiving and Deletion in PI'.

anupam_ghosh2
Active Contributor
0 Kudos

Hi Peter,

Do you possess administrative rights to install software in your system? If yes please download the WINSCP software from this link http://winscp.net/eng/download.php

After you install the software, consult the SAP logon pad and put server details of your PI server in WINSCP configuration. Put port number as 22.

Request your SAP BASIS OS level team to provide you with username and password to login to the PI server at Operating system level. with WINSCP you can copy, move,create and delete files in the PI server. WINSCP acts as a FTP bridge between your system and PI server.

If you do not have administrative privileges. You need to write scripts or batch files. If operating system in PI server is unix/linux use this link http://www.unix.com/shell-programming-scripting/24911-how-delete-files-unix-using-shell-script.html

to write shell scripts to delete files. Request your basis team to copy the script to server and execute it once.

If your operating system is windows then use this link http://stackoverflow.com/questions/51054/batch-file-to-delete-files-older-than-n-days. Request your basis team to copy the batch to server and execute it once.

Finally you can use the feature "Defining Operating System Commands Before/After Processing" in File sender or receiver communication channel configuration settings. Here you can set the command to execute shell scripts or batch files which will delete old files during each instance of running the scenario. For more information on this technique try these links

http://help.sap.com/saphelp_nwpi71/helpdata/en/44/556cb799c93677e10000000a114a6b/frameset.htm

https://wiki.sdn.sap.com/wiki/display/XI/SAP%20XI%20File%20Adapter%20OS%20Command%20Line%20Feature

Hope this solves your problem.

regards

Anupam

aashish_sinha
Active Contributor
0 Kudos

Hi,

Please refer this document and check if you following same steps.

[Archiving and Deletion of XML Messages|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0afdd69-a8a7-2d10-7e9a-cbf6fa21c5a7?quicklink=index&overridelayout=true]

Regards

Aashish Sinha