public function delete($file) { if (!ftp_delete($this->conn, $file)) { throw new Exception('Error: There was an error removing the file ' . $file); } return $this; }