Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

delete files from temp folder ?

Former Member
0 Likes
777

hi,

I am writing a code to delete all the ADK files from the usr/sap/SID/.../temp/ directory which are 4 weeks old.

Can anyone tell me how to delete the files from given directory ? any function module ?

I have coded all the validations for root and path but can't make a logic to delete the files.

Please help.

1 REPLY 1
Read only

ThomasZloch
Active Contributor
0 Likes
560

Deletion of a single file can be done with DELETE DATASET, in order to find out the files to be deleted i.e. reading the contents of a directory, there are several function modules that have been discussed before, please search for information.

(however I'm sure they will be posted here anyway).

Thomas