MDELETE (Delete Multiple Files on a Remote System)

FTP client subcommand

MDelete { remotefile [remotefile...]}

remotefile
The file or files on the server system you want to delete.
Note: When the remotefile is an iSeries™ QSYS.LIB file, then the server deletes all members of the iSeries physical file. The file itself remains.

This is a library file system example in NAMEFMT 0:

 MDELETE MYLIB/FILE1.MBRA YOURLIB/FILE2.MBRB

This deletes member MBRA in file FILE1 in library MYLIB and member MBRB in file FILE2 in library YOURLIB on a remote iSeries server. The same example in NAMEFMT 1:

 MDELETE /QSYS.LIB/MYLIB.LIB/FILE1.FILE/MBRA.MBR
 /QSYS.LIB/YOURLIB.LIB/FILE2.FILE./MBRB.MBR

This is a document library system example in NAMEFMT 1:

 MDELETE /QDLS/QIWSOS2/PCSMENU.EXE /QDLS/PCSDIR/PCSFILE.EXE

This deletes document PCSMENU.EXE in folder QIWSOS2 in the document library services library, and also deletes PCSFILE.EXE in folder PCSDIR in the QDLS library on an iSeries.

You can use an asterisk (*) to delete the files generically. For example with NAMEFMT 0, if the remote system is an iSeries, type:

 MDELETE MYLIB/MYFILE.*

This example would delete all members of file MYFILE in library MYLIB. Use of the asterisk is only valid at the end of a character string.

Related reference
DELETE (Delete a File on a Remote System)
File Transfer Protocol client syntax conventions
File names for client-transfer subcommands
Naming files for transfer