Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this 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 or string 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?