Hallo Geplagter (Codierknecht),
ich denke da helfen Dir die IFS Tools:

DELTREE
Similar to DOS's DELTREE command, the DELTREE utility deletes all files, directories, and subdirectories from the parent directory down.

DEL
This deletes one or more files:

Usage:

CALL PGM(DEL) PARM('' '\s')
where specifies the file to be deleted, and the optional '\s' specifies that the files in the subdirectories will be deleted. You can use wildcard characters to delete multiple files.

Examples:

CALL PGM(DEL) PARM('/rjzeller/myfile.txt')
CALL PGM(DEL) PARM('/rjzeller/*.*')
CALL PGM(DEL) PARM('/rjzeller/*.eml' '\s')

You can download the save file for the ISF Tools from ftp://testcase.boulder.ibm.com/as400...s/ifstool.savf. Once you've downloaded the save file from IBM's site and uploaded it to your AS/400, enter the following command to restore the save file to your target library:

RSTOBJ OBJ(*ALL) SAVLIB(DDILLING) DEV(*SAVF) +
SAVF(yourlib/IFSTOOL) RSTLIB(targetlibrary)