Documentation Center

  • Trial Software
  • Product Updates

rmdir

Class: FTP

Remove folder on FTP server

Syntax

rmdir(ftpobj,folder)

Description

rmdir(ftpobj,folder) removes the specified folder from the current folder on an FTP server.

Input Arguments

ftpobj

FTP object created by ftp.

folder

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

Examples

Remove the folder temp from the hypothetical FTP server ftp.testsite.com:

test = ftp('ftp.testsite.com');
rmdir(test, 'temp');

See Also

| | | |

Was this topic helpful?