5.6.15 DELETE

This command is used to delete a directory or a file from the remote FTP server.

Syntax:

Command

Keyword

Value

Developer notes

DELETE

DIR

value

Conditional. Can be a relative or absolute path.
Required if no FILE keyword is supplied.

FILE

value

Conditional. Can be a relative or absolute path.
Required if no DIR keyword is supplied.

 

Example

DELETE DIR(/folder)

 

DELETE FILE(/folder/file.csv)