Skip to Content

Delete  test files from the UNIX/application server using function module

Introduction:

Many times while performing the unit testing we create the n number of test files on the UNIX server. Once we complete the unit testing its difficult to find out the latest file in those N numbers of test files.

This article elaborates you, how the unwanted test files will be deleted from the Application server.

Steps:

1.      1. In my example I have created below files on the application server.

      /wp-content/uploads/2013/06/1_233212.png

2.      2. Now I wanted to delete these files in one click. For this go to SE37 and enter the function module name ‘FMCT_DELETE_UNIXFILE’

      /wp-content/uploads/2013/06/2_233322.png

3.      3. Execute the function module and enter the file path which you want to delete the files.

         /wp-content/uploads/2013/06/3_233323.png

Output:

Check the file at AL11 in the above directory:

/wp-content/uploads/2013/06/4_233327.png

In this way we can delete the test files from the Application server without writing a single line of code.

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply