Title: WP_Filesystem_SSH2::delete compatibility warning
Last modified: August 22, 2016

---

# WP_Filesystem_SSH2::delete compatibility warning

 *  Resolved [jeroenmsi](https://wordpress.org/support/users/jeroenmsi/)
 * (@jeroenmsi)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/wp_filesystem_ssh2delete-compatibility-warning/)
 * For everybody who’s getting the _WP\_Filesystem\_SSH2::delete($file, $recursive
   = false) should be compatible with WP\_Filesystem\_Base::delete($file, $recursive
   = false, $type = false)_ warning, updating the delete function code in **class-
   wp-filesystem-ssh2.php** on line **218** from this:
 *     ```
       function delete($file, $recursive = false) {
       	return $this->link->delete($file, $recursive);
       }
       ```
   
 * to this:
 *     ```
       function delete($file, $recursive = false, $type = false) {
       	return $this->link->delete($file, $recursive, $type);
       }
       ```
   
 * should fix the issue.
 * [https://wordpress.org/plugins/ssh-sftp-updater-support/](https://wordpress.org/plugins/ssh-sftp-updater-support/)

The topic ‘WP_Filesystem_SSH2::delete compatibility warning’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ssh-sftp-updater-support.svg)
 * [SSH SFTP Updater Support](https://wordpress.org/plugins/ssh-sftp-updater-support/)
 * [Support Threads](https://wordpress.org/support/plugin/ssh-sftp-updater-support/)
 * [Active Topics](https://wordpress.org/support/plugin/ssh-sftp-updater-support/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ssh-sftp-updater-support/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ssh-sftp-updater-support/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [jeroenmsi](https://wordpress.org/support/users/jeroenmsi/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/wp_filesystem_ssh2delete-compatibility-warning/)
 * Status: resolved