PHP ftp_delete( ) FunctionLast Updated : 17 Mar 2025 The ftp_delete() function is used to delete a file on the FTP server.This function was introduced in PHP 4. Syntax:
ReturnsThe ftp_delete( ) function returns true on success or false on failure. Example 1ExplanationIn the above example, we are deleting one file from a specific location which is available in FTP server. Example 2ExplanationIn the above example, if the file is deleted, its echo deleted successful, if not, then it echo could not delete. Next TopicPHP FTP |
We request you to subscribe our newsletter for upcoming updates.

We deliver comprehensive tutorials, interview question-answers, MCQs, study materials on leading programming languages and web technologies like Data Science, MEAN/MERN full stack development, Python, Java, C++, C, HTML, React, Angular, PHP and much more to support your learning and career growth.
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India