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

Application server-file delete

Former Member
0 Likes
651

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
Read only

alex_m
Active Contributor
0 Likes
607

Hi,

Use delete dataset filename.

Read only

Former Member
0 Likes
607

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

Read only

Former Member
Read only

Former Member
0 Likes
607

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

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