ftp Library Package 2.1 for Tcl/Tk Manual Pages

COMMAND
ftp::Delete  handle  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.

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

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

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


© 1999 Steffen Traeger