FTP Library Package 1.2 for Tcl/Tk Manual Pages

FTP::Delete  file
The FTP::Delete command deletes the specified file on the ftp server. The command returns 1 if the specified file can be successfully deleted or 0 if it fails.

# delete file
if {![FTP::Delete index.htm]} {
	puts "File couldn't be deleted!"

# delete all like "rm *"
foreach file [FTP::NList] {
	FTP::Delete $file

[Contents]  [Previous: FTP::ModTime]  [Next: FTP::Rename]

© 1999 Steffen Traeger