I can only reproduce this on Ubuntu if I use the old nautilus window still pointing to the files; rather than the newly-opened window from re-connecting the USB cable. This makes it not an issue in mtp; and it's unclear whether this is actually fixable in nautilus/gvfs itself.
I'm marking this as Invalid for the mtp project; since it does appear to work properly when you have a valid session on the device (and it's as simple as using the actual window what pops up, above the others, to browse back to the path and delete the folder). I'm also creating a task against gvfs (for lack of a better idea of where to assign this). I'm not sure if it's something that can be done yet or if it actually goes against designed used cases; but on closing the session with MTP, I think the window itself for that should disappear, or at least be cleared of the MTP folder data. You should at the very least no longer be able to see the folder contents. ** Changed in: mtp (Ubuntu) Status: Incomplete => Invalid ** Also affects: gvfs (Ubuntu) Importance: Undecided Status: New ** Changed in: gvfs (Ubuntu) Importance: Undecided => Medium -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to mtp in Ubuntu. https://bugs.launchpad.net/bugs/1369632 Title: After disconnecting and reconnecting device to MTP host it is not possible to delete a folder using MTP Status in “gvfs” package in Ubuntu: New Status in “mtp” package in Ubuntu: Invalid Bug description: ENVIRONMENT: Device: ubuntu-rtm/14.09-proposed build 40 Desktop: Windows 8.1 / Ubuntu SUMMARY: After disconnecting and reconnecting device to MTP host it is not possible to delete a folder using MTP STEPS: 1) Connect Ubuntu device to host PC over USB 2) Copy some music content to the music folder on MTP device including some folder structure 3) Eject the Ubuntu device's USB connection 4) Re-insert Ubuntu device USB 5) Browse to MTP Music folder on device 6) Try to delete some of the music folders that were just added EXPECTED RESULT: The content should be deleted successfully. ACTUAL RESULT: After a delay of about 30 seconds Ubuntu presents error: "libmtp error: could not delete object". It is then not possible to copy any content to or from the device. Windows also fails to delete the content with error stating that device has been disconnected. Note that it is possible to delete files when the device is re- connected. It is when deleting a parent folder that the problem occurs. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1369632/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp