Not deleting files when deleting torrent #10908

Closed
opened 2026-02-21 21:02:14 -05:00 by deekerman · 7 comments
Owner

Originally created by @rogeriodec on GitHub (Sep 18, 2020).

Please provide the following information

qBittorrent version and Operating System

4.2.5, Windows 10 x64 (10.0.1xxxx)

What is the problem

When I delete a file inside qBittorrent, the original files/folder remains on the disk.
So I have to manually delete the files.
The option "Also delete the files on the hard disk" is enabled.
But it's not working.

image

Originally created by @rogeriodec on GitHub (Sep 18, 2020). **Please provide the following information** ### qBittorrent version and Operating System 4.2.5, Windows 10 x64 (10.0.1xxxx) ### What is the problem When I delete a file inside qBittorrent, the original files/folder remains on the disk. So I have to manually delete the files. The option "Also delete the files on the hard disk" is enabled. But it's not working. ![image](https://user-images.githubusercontent.com/11199752/93626751-45e39f00-f9ba-11ea-9e34-86df2699d73d.png)
deekerman 2026-02-21 21:02:14 -05:00
Author
Owner

@xavier2k6 commented on GitHub (Sep 20, 2020):

@FranciscoPombal (While I was planning an update for the labels breakdown) this issue, although it has been labelled is showing under the no:label search filter!. Do you have any idea why that is?

It seems to have rectified itself, when I made the post.......... 😕

@xavier2k6 commented on GitHub (Sep 20, 2020): @FranciscoPombal ~(While I was planning an update for the labels breakdown) this issue, although it has been labelled is showing under the [no:label search filter](https://github.com/qbittorrent/qBittorrent/issues?q=is%3Aopen+is%3Aissue+no%3Alabel)!. Do you have any idea why that is?~ It seems to have rectified itself, when I made the post.......... :confused:
Author
Owner

@HYBRID-BEING commented on GitHub (Oct 31, 2020):

I'm not sure if it's related, but i can confirm this happen for disk images when they are mounted. Every other file in the torrent gets deleted, but qB silently fails to delete an image. Perhaps that concerns every file in use?
The issue i opened was recently closed due to "expiration", but now that i had a chance to check if it was fixed - well, it wasn't.
#9153
Hmm, can't edit post im my Waterfox, what the heck.

@HYBRID-BEING commented on GitHub (Oct 31, 2020): I'm not sure if it's related, but i can confirm this happen for disk images when they are mounted. Every other file in the torrent gets deleted, but qB silently fails to delete an image. Perhaps that concerns every file in use? The issue i opened was recently closed due to "expiration", but now that i had a chance to check if it was fixed - well, it wasn't. #9153 ~Hmm, can't edit post im my Waterfox, what the heck.~
Author
Owner

@ghost commented on GitHub (Jul 17, 2022):

This doesn't sound like an issue as any file that is open in another app will fail to be deleted.

@ghost commented on GitHub (Jul 17, 2022): This doesn't sound like an issue as any file that is open in another app will fail to be deleted.
Author
Owner

@HYBRID-BEING commented on GitHub (Jul 17, 2022):

@summerqB
While inability to delete locked files is understandable, qBittorrent SHOULD give a warning if it can't delete any file, not silently skip it. Should i file another issue?

@HYBRID-BEING commented on GitHub (Jul 17, 2022): @summerqB While inability to delete locked files is understandable, qBittorrent SHOULD give a warning if it can't delete any file, not silently skip it. Should i file another issue?
Author
Owner

@ghost commented on GitHub (Jul 17, 2022):

Does it say anything in the logs when it fails? If not then I may re-open this.
As this delete operation is dealt by libtorrent in a non blocking way it may only be feasible to log the error. A user may select thousands of torrents at one go and delete them. Also the torrent is removed from session before libtorrent finishes the delete operation so it would be difficult to trace the error back to the torrent.

@ghost commented on GitHub (Jul 17, 2022): Does it say anything in the logs when it fails? If not then I may re-open this. As this delete operation is dealt by libtorrent in a non blocking way it may only be feasible to log the error. A user may select thousands of torrents at one go and delete them. Also the torrent is removed from session before libtorrent finishes the delete operation so it would be difficult to trace the error back to the torrent.
Author
Owner

@HYBRID-BEING commented on GitHub (Jul 17, 2022):

Not sure, never checked logs for file deletion errors actually.
It's really annoying that you need to double check that all files are deleted after you delete torrents from qBT's list. Surely there is some kind of way for libtorrent to communicate the status of operations back to qBT? It would be fine if end result is just a list of undeleted files, so user can manually check up on them.

@HYBRID-BEING commented on GitHub (Jul 17, 2022): Not sure, never checked logs for file deletion errors actually. It's really annoying that you need to double check that all files are deleted after you delete torrents from qBT's list. Surely there is some kind of way for libtorrent to communicate the status of operations back to qBT? It would be fine if end result is just a list of undeleted files, so user can manually check up on them.
Author
Owner

@xavier2k6 commented on GitHub (Sep 2, 2024):

4.2.5

Version is obsolete.

Thank you for your contribution, we are starting to close all old/stale/obsolete tickets.

Please update to latest qBittorrent 4.6.6 ATTOW.

If any issues are experienced, please open a new ticket.

@xavier2k6 commented on GitHub (Sep 2, 2024): >4.2.5 Version is obsolete. Thank you for your contribution, we are starting to close all old/stale/obsolete tickets. Please update to latest qBittorrent 4.6.6 ATTOW. If any issues are experienced, please open a new ticket.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/qBittorrent#10908
No description provided.