Application Development 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: 

Application server-file delete

Former Member
0 Kudos

Hi All,

Is there any options to delete for file in directory in Application server. If there ,please send me flow or logic.

4 REPLIES 4

alex_m
Active Contributor
0 Kudos

Hi,

Use delete dataset filename.

Former Member
0 Kudos

Hi,

For deleting a file in the application server user the syntax DELETE DATASET..

DELETE DATASET '/tmp/test.txt'.

IF SY-SUBRC <> 0.

WRITE: / 'Error in deleting'.

ELSE.

WRITE; / 'File deleted'.

ENDIF.

Thanks,

Naren

Former Member
0 Kudos

For deleting a file in application server syntax is <b>DELETE DATASET..</b>

<b>DELETE DATASET '/abap/1.txt'.</b>