Option to delete individual files already downloaded in the torrent. #14075

Open
opened 2026-02-22 00:39:57 -05:00 by deekerman · 8 comments
Owner

Originally created by @anonghuser on GitHub (Dec 6, 2022).

Suggestion

Please add a 'delete' option in the right-click menu for files that are partially or completely allocated/downloaded but have later been changed to 'not downloaded' priority. On clicking it, the still-needed shared edge pieces should be moved to a .parts file and the file should be deleted.

Use case

If I have partially or completely downloaded some file in a torrent but decide I do not want it, I can uncheck it from the files list but that does not delete it from the downloads folder. I can delete it manually in explorer, but that's less convenient and leads to errors in pieces shared with other files, so I have to force recheck and re-download the edges, hoping there are other seeders for it etc.

Extra info/examples/attachments

No response

Originally created by @anonghuser on GitHub (Dec 6, 2022). ### Suggestion Please add a 'delete' option in the right-click menu for files that are partially or completely allocated/downloaded but have later been changed to 'not downloaded' priority. On clicking it, the still-needed shared edge pieces should be moved to a .parts file and the file should be deleted. ### Use case If I have partially or completely downloaded some file in a torrent but decide I do not want it, I can uncheck it from the files list but that does not delete it from the downloads folder. I can delete it manually in explorer, but that's less convenient and leads to errors in pieces shared with other files, so I have to force recheck and re-download the edges, hoping there are other seeders for it etc. ### Extra info/examples/attachments _No response_
Author
Owner

@glassez commented on GitHub (Dec 6, 2022):

It isn't supported by backend (libtorrent). You could participate in the related request: https://github.com/arvidn/libtorrent/issues/7143.

@glassez commented on GitHub (Dec 6, 2022): It isn't supported by backend (libtorrent). You could participate in the related request: https://github.com/arvidn/libtorrent/issues/7143.
Author
Owner

@anonghuser commented on GitHub (Dec 7, 2022):

I don't want to cause a hassle with my potential misunderstanding of things, but it seems you can 1) remove a torrent from libtorrent 2) move/delete unwanted file 3) add torrent back to libtorrent; this will still cause an issues with edge pieces shared with other files, so the only thing that needs to be added is copying those pieces to a .parts file first. If that is currently impossible with libtorrent, perhaps a more focused issue just for this should be opened with them? It may be simpler to implement than a general 'ignore file', and seems like a necessary step even if 'ignore file' were already implemented.

@anonghuser commented on GitHub (Dec 7, 2022): I don't want to cause a hassle with my potential misunderstanding of things, but it seems you can 1) remove a torrent from libtorrent 2) move/delete unwanted file 3) add torrent back to libtorrent; this will still cause an issues with edge pieces shared with other files, so the only thing that needs to be added is copying those pieces to a .parts file first. If that is currently impossible with libtorrent, perhaps a more focused issue just for this should be opened with them? It may be simpler to implement than a general 'ignore file', and seems like a necessary step even if 'ignore file' were already implemented.
Author
Owner

@glassez commented on GitHub (Dec 8, 2022):

it seems you can 1) remove a torrent from libtorrent 2) move/delete unwanted file 3) add torrent back to libtorrent

Sure. But you can do something like that too (delete torrent, delete files, re-add torrent with unchecked files). Don't take it as a desire to offend you. It's just that I, as a developer, also prefer to get some function rather than use a workaround.

@glassez commented on GitHub (Dec 8, 2022): > it seems you can 1) remove a torrent from libtorrent 2) move/delete unwanted file 3) add torrent back to libtorrent Sure. But you can do something like that too (delete torrent, delete files, re-add torrent with unchecked files). Don't take it as a desire to offend you. It's just that I, as a developer, also prefer to get some function rather than use a workaround.
Author
Owner

@user9517 commented on GitHub (Dec 23, 2023):

@glassez Hey, a question, when I deselect an already downloaded file from a torrent, and delete the file from file system, then run a recheck on the torrent, qbittorrent shows that the first/last pieces of other files are missing, which is ok, but if I now resume the torrent to download the missing pieces, the deselected files that I deleted come back! why aren't the missing pieces go to a .parts file? (like they would have if the deselected files were deselected before being downloaded).

It makes the folder filled with files I didn't want... So if I want the folder to contain only the correct files, I have to remove the torrent from qb, add the torrent again, deselect all the files I don't want (which can be a huge number of files), then run recheck, then resume and download missing pieces (in this way the unwanted files do not come back into the folder)

It seems to me like if the program starts downloading pieces of a non-existent AND deselected file, it shouldn't recreate the file.

@user9517 commented on GitHub (Dec 23, 2023): @glassez Hey, a question, when I deselect an already downloaded file from a torrent, and delete the file from file system, then run a recheck on the torrent, qbittorrent shows that the first/last pieces of other files are missing, which is ok, but if I now resume the torrent to download the missing pieces, the deselected files that I deleted come back! why aren't the missing pieces go to a .parts file? (like they would have if the deselected files were deselected before being downloaded). It makes the folder filled with files I didn't want... So if I want the folder to contain only the correct files, I have to remove the torrent from qb, add the torrent again, deselect all the files I don't want (which can be a huge number of files), then run recheck, then resume and download missing pieces (in this way the unwanted files do not come back into the folder) It seems to me like if the program starts downloading pieces of a non-existent AND deselected file, it shouldn't recreate the file.
Author
Owner

@glassez commented on GitHub (Dec 23, 2023):

@Phantom1472
Seems like libtorrent does mark piece parts to be stored either in target file or in .parts file only when adding a torrent to the session and doesn't reset them on recheck.

@glassez commented on GitHub (Dec 23, 2023): @Phantom1472 Seems like libtorrent does mark piece parts to be stored either in target file or in .parts file only when adding a torrent to the session and doesn't reset them on recheck.
Author
Owner

@user9517 commented on GitHub (Dec 23, 2023):

@glassez hmmm... So, qb cannot solve it? Only removing and adding the torrent again?

Is there anyway i can keep the file selecteion for download between removing and adding the torrent again? That would make this WAY easier, maybe a way to export the selection then import is again somehow?

@user9517 commented on GitHub (Dec 23, 2023): @glassez hmmm... So, qb cannot solve it? Only removing and adding the torrent again? Is there anyway i can keep the file selecteion for download between removing and adding the torrent again? That would make this WAY easier, maybe a way to export the selection then import is again somehow?
Author
Owner

@stalkerok commented on GitHub (Jan 1, 2025):

Related/Duplicate of https://github.com/qbittorrent/qBittorrent/issues/18641

@stalkerok commented on GitHub (Jan 1, 2025): Related/Duplicate of https://github.com/qbittorrent/qBittorrent/issues/18641
Author
Owner

@xavier2k6 commented on GitHub (May 25, 2025):

ANNOUNCEMENT!

For anybody coming across this "Feature Request" & would like/love to see a potential implementation in the future!
Here are some options available to you:

  1. Please select/click the 👍 &/orreactions in the original/opening post of this ticket.

  2. Please feel free (If you have the "skillset") to create a "Pull Request" implementing what's being requested in this ticket.
    (new/existing contributors/developers are always welcome)


DO:

  • Provide constructive feedback.
  • Display how other projects implemented same/similar etc.

DO NOT:

  • Add a "Bump", "me too", "2nd/3rd" etc. or "criticizing" comment(s).
    (These will be disregarded/hidden as "spam/abuse/off-topic" etc. as they don't provide anything constructive.)
@xavier2k6 commented on GitHub (May 25, 2025): ## ANNOUNCEMENT! For anybody coming across this **_"Feature Request"_** & would like/love to see a potential implementation in the future! **Here are some options available to you:** 1. Please select/click the 👍 **&/or** ❤ `reactions` in the original/opening post of this ticket. 2. Please feel free _(If you have the "skillset")_ to create a **_"Pull Request"_** implementing what's being requested in this ticket. **_(new/existing contributors/developers are always welcome)_** ____ **DO:** * Provide constructive feedback. * Display how other projects implemented same/similar etc. **DO NOT:** * Add a "Bump", "me too", "2nd/3rd" etc. or "criticizing" comment(s). **(These will be disregarded/hidden as "spam/abuse/off-topic" etc. as they don't provide anything constructive.)**
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#14075
No description provided.