Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

delete (ftp) - Remove file on FTP server

Syntax

delete(f,'filename')

Description

delete(f,'filename') removes the file filename from the current directory of the FTP server f, where f was created using ftp.

Examples

Connect to hypothetical server testsite and view the contents.

test=ftp('ftp.testsite.com');
dir(test)

Suppose that the contents include the following:

.              ..       otherfile.m          testdir

Delete otherfile.m and close the connection.

delete(test,'otherfile.m');
close(test);

See Also

ftp, rmdir (ftp)

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS