delete_file Method
Remove a file specified by FileName from an FTP server.
Syntax
def delete_file(file_name: str) -> None: ...
Remarks
This method is used to remove a file specified by FileName from an FTP server. The remote file or directory specified by FileName is deleted. FileName is either an absolute path on the server, or a path relative to remote_path. If there is no FTP session in place, one is automatically created by first calling the logon method.