Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

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

Character vector 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:

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

See Also

|

Introduced before R2006a

Was this topic helpful?