delete

Class: FTP

Remove file on FTP server

Syntax

delete(ftpobj,filename)

Description

delete(ftpobj,filename) removes the specified file from the current folder on the FTP server associated with ftpobj.

Input Arguments

ftpobj

FTP object created by ftp.

filename

String enclosed in single quotation marks that specifies the name of the file to delete.

Examples

Suppose that a hypothetical host, ftp.testsite.com, contains myfile.m. Connect to the server and delete the file:

test=ftp('ftp.testsite.com');
delete(test,'myfile.m');

See Also

|

Was this topic helpful?