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: 

Delete a directory.

Former Member
0 Kudos

The directory has files and subdirectories with files, I´m looking for a function or a program that can help me.

4 REPLIES 4

Former Member
0 Kudos

Hi Juan,

try following method:

CL_GUI_FRONTEND_SERVICES=>DIRECTORY_DELETE

athavanraja
Active Contributor
0 Kudos

Hi,

You can use the following method

CL_GUI_FRONTEND_SERVICES=>DIRECTORY_DELETE

Regards

Raja

Former Member
0 Kudos

that works only if the directory is empty.

0 Kudos

Hi,

Use the method DIRECTORY_LIST_FILES in the same class to list the directory contents.

Process each of the entries returned use the method FILE_DELETE also in the same class.

Kind regards

Colin