Internet Direct (Indy) Version 9.0.2 Beta
TIdFTPServer.OnDeleteFile
Allows the server to remove a file from the server file system.

property OnDeleteFile: TOnFileEvent;
Description
OnDeleteFile is a TOnFileEvent property that represents the event handler signalled when the FTP server needs to remove a file located on the server file system. OnDeleteFile is used in the FTP DELE command event handler, and allows the server to perform the platform-specific API calls needed to delete the file specified in AFilename.

Note: Applications must assign a procedure to the event handler to allow responding to the event notification. When an event handler has not been assigned, the message specified in RSFTPFileActionNotTakenand with a numeric result code of 550 is sent to the client connection.