FTP.delete()
FTP.delete() is a Python method in the Ftplib Module category. Deletes a file on the FTP server. The syntax is FTP.delete(filename). Returns: Server response string. A typical example: ftp.delete("old_file.txt"). A close sibling is ftplib.FTP(), which creates an FTP client for file transfer. A close sibling is FTP.login(), which logs in to the FTP server with username and password. A close sibling is FTP.cwd(), which changes the current working directory on the FTP server. A close sibling is FTP.retrbinary(), which retrieves a file in binary mode from the FTP server. More about this category: FTP client — FTP, login, retrbinary, storbinary, nlst, cwd. Related Ftplib Module entries: ftplib.FTP(), FTP.login(), FTP.cwd(), FTP.retrbinary(), FTP.storbinary(), FTP.nlst(). This page is part of the free Python Reference documentation covering 978+ functions, methods, and modules with examples and parameter details. You can try FTP.delete() immediately in the Python playground, look up unfamiliar terms in the glossary, or return to the Python Reference homepage.