mail/base/content/folderPane.js
changeset 30642 d4333da4784fc707a56a5bdda13392a94765c05b
parent 30187 1271811d565abcd49e37da939b4a978f686444da
child 30766 12ee21eac5ace0566899eabda6035bbaf7852a44
--- a/mail/base/content/folderPane.js
+++ b/mail/base/content/folderPane.js
@@ -3196,19 +3196,18 @@ var gFolderTreeController = {
           {}
         ) != 0
       ) {
         /* the yes button is in position 0 */
         return;
       }
     }
 
-    let array = toXPCOMArray([folder], Ci.nsIMutableArray);
     try {
-      folder.parent.deleteSubFolders(array, msgWindow);
+      folder.deleteSelf(msgWindow);
     } catch (ex) {
       // Ignore known errors from canceled warning dialogs.
       const NS_MSG_ERROR_COPY_FOLDER_ABORTED = 0x8055001a;
       if (ex.result != NS_MSG_ERROR_COPY_FOLDER_ABORTED) {
         throw ex;
       }
     }
   },