rogerfar / rdt-client

Real-Debrid Client Proxy
MIT License
930 stars 117 forks source link

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

Open myhme opened 1 week ago

myhme commented 1 week ago

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)