Permanently Delete Files in qBittorrent v5: Here's How
qBittorrent is a popular, free, and open-source BitTorrent client used for peer-to-peer file sharing. With the release of version 5, some users have reported issues with permanently deleting files. This article will provide a detailed explanation of how to permanently delete files in qBittorrent v5.
Overview of qBittorrent v5
qBittorrent v5 is the latest stable version of the BitTorrent client, released on
The Issue with Permanently Deleting Files
Prior to version 5, when you selected a torrent, hit Shift+Delete, and clicked "Remove", the files would be permanently deleted. However, in version 5, the actions are not as straightforward. When you remove a torrent in qBittorrent v5, the files are not permanently deleted by default. Instead, they are moved to the "Deleted Torrents" folder specified in the application's settings.
How to Permanently Delete Files in qBittorrent v5
To permanently delete files when removing a torrent in qBittorrent v5, follow these steps:
-
Open qBittorrent and go to "Settings" (the gear icon in the top right corner).
-
Under "Downloads", click on "Torrent Queue" and then "Behavior".
-
Scroll down to the "Remove Torrent" section.
-
Check the box next to "Delete data" to enable file deletion when removing a torrent.
-
Close the settings window and remove the torrent as usual. The files should now be permanently deleted.
Code Example - Automating Permanent File Deletion
You can automate the permanent deletion of files by using a script that triggers when removing torrents. The following example demonstrates how to do this using Python and the qBittorrent API. The code snippet below assumes that you have the python-qbittorrent package installed.
import qbittorrent
# Connect to qBittorrent
qbt = qbittorrent.Client()
qbt.login('your_username', 'your_password')
# Set delete_data to True
qbt.set_config_value('delete_data', True)
# Logout
qbt.logout()
- Permanent file deletion in qBittorrent v5 is enabled through the "Delete data" option in the settings.
- You can automate the process by using a script tied to the removal of torrents using the qBittorrent API.