rdt-client icon indicating copy to clipboard operation
rdt-client copied to clipboard

is it possible to delete files via api as we can do in ui

Open myhme opened this issue 1 year ago • 2 comments

What version are you using? latest

Wat OS are you running? ubuntu

Are you using Docker or as a service? yes

Which debrid provider are you using? rd

Which downloader are you using? symlink

Please attach a log file here with the log setting set to debug not require as pic is attached Screenshot 2024-11-19 110053

Additional Info - i am using Authentication Type as No Authentication

i have a query can we delete torrent via api just like we do from ui. i can query just fine from script for torrent info but i can't delete that using http://ip:6500/api/v2/torrents/delete?hashes=abcabc&deleteFiles=true maybe its for radarr but can you provide another end point for delete like http://ip:6500/api/v2/torrents/deletefromrd?hashes=abcabc&deleteFiles=true so that we can delete from rd.

Use Cases:

  1. delete duplicate hash torrent which then creates conflict in *arr for importing.
  2. delete download which has gone stale (without seeders) (without waiting for Torrent maximum lifetime as if the download speed is slow we still want to download the file)

If it is not possible to add the api can you provide those feature in ui like Delete download when in error, Torrent maximum lifetime

  1. Remove duplicate hash ( it could have multiple options like remove - keep oldest/keep newest)
  2. Delete torrent without seeders ( add time option in which we can input time after that time inactivity duration it didn't find any seeders it will delete the torrent)

myhme avatar Nov 19 '24 06:11 myhme

You can call the regular api/v2/torrents/delete. This will delete the files based on the setting qBittorrent/*arr Post Download Action.

You can pass a property in the body deleteFiles, if it's set to true it will also delete the files.

rogerfar avatar Dec 07 '24 01:12 rogerfar

You can call the regular api/v2/torrents/delete. This will delete the files based on the setting qBittorrent/*arr Post Download Action.

yes, but in Post Download Action i cannot use Remove from both client and provider as general rule as would make use of rdtclient pointless (symlink and regular download won't work)

You can pass a property in the body deleteFiles, if it's set to true it will also delete the files.

yes i am using that it work without issues in normal cases but in case of duplicate hashes or without seeders it won't be able to delete it from provider which i can do it from the ui. Since rd has now limited the download slot the issue has becomes more noticeable. Currently i use dmm or rd website to manually delete those problematic hashes but i want to avoid those if possible (api limits will be shared with rdtclient) and manual intervention.

Can a property be passed in the body deleteFilesfromprovider which can delete it from provider also ? and does these features come under the scope of rdtclient if not i would close the issue

myhme avatar Dec 07 '24 08:12 myhme