How do you clean up no longer needed *.Arr media? reddit / selfhosted ---------------------------------------------------------------------- curtwagner1984 · 2023-10-16 16:50 The `Arr` (Sonarr,Radarr etc) software suite makes it easy to collect large amounts of media files, but as far as I can tell there is no easy way to remove said media when it's no longer needed. For example, with one click you can add a movie to a trakt.tv list, where Radarr will later pick it up, download it via a torrent client, make symlinks of the files to the folder your media player searches and also download meta data for said movie. But one day later, after you watched said movie, how do you clean this up? The only way I found is to manually go to the torrent client, search for the movie, manually delete it from the client, then manually delete all the folders and metadata Radarr created, and then manually refresh your media player library so it would notice the file is missing. Is there an easier way, am I missing something simple? ---------------------------------------------------------------------- clintkev251 · 2023-10-16 17:06 Just delete it from within Radarr? ---------------------------------------------------------------------- curtwagner1984 · 2023-10-16 17:15 But aren't these two steps? 1. Delete from Radarr 2. Delete from torrent once seeded ---------------------------------------------------------------------- clintkev251 · 2023-10-16 17:23 Not if you've properly configured completed download handling ---------------------------------------------------------------------- ElevenNotes · 2023-10-16 17:55 I use the Tautulli API to automatically remove content that was added within but not played within another custom timeframe (like added six months ago but not watched in the last three months). ---------------------------------------------------------------------- Py-rrhus · 2023-10-16 18:24 It depends which client you use to watch the said media. For my part, I use hard links so each component has its own deleting policy: - torrent: delete after a 5x ratio (script on top of transmission-api) - kodi: after watching (own script against the database) - *arr: does not redownload deleted files ---------------------------------------------------------------------- Py-rrhus · 2023-10-16 18:32 For the episodes in kodi https://github.com/Pyrrhu5/ep_cleansing/tree/stable ---------------------------------------------------------------------- curtwagner1984 · 2023-10-16 19:55 Can you elaborate on what 'properly configured completed download handling' entails? ---------------------------------------------------------------------- curtwagner1984 · 2023-10-16 19:57 > torrent: delete after a 5x ratio (script on top of transmission-api) What prevents the file from being deleted before it's watched? ---------------------------------------------------------------------- clintkev251 · 2023-10-16 19:59 [https://wiki.servarr.com/radarr/settings#remove-completed- downloads](https://wiki.servarr.com/radarr/settings#remove-completed- downloads) Your torrent needs to stay in the same category as when it was downloaded, and be set to pause once seeding is complete. Then As long as "Completed Download Handling - Remove" is enabled, \*arr will clean it up. ---------------------------------------------------------------------- TheRealSeeThruHead · 2023-10-16 20:41 What do you mean no longer needed…… ---------------------------------------------------------------------- TheRealSeeThruHead · 2023-10-16 20:41 Don’t even use torrents… ---------------------------------------------------------------------- pigers1986 · 2023-10-16 20:45 I delete item with files from desired program. Seeding is another matter. ---------------------------------------------------------------------- iriella · 2023-10-16 20:49 How exactly is this done? ---------------------------------------------------------------------- Majestic-Contract-42 · 2023-10-16 21:05 One example. Media directory example: media/shows-keep media/shows-remove media/shows-remove-30 Keep is kept. Stuff you *manually* assign to be kept forever. Shows-remove has its contents removed once they are X years old. This is the default TV show folder location. Shows-remove-30 has its contents removed after 30 days. (Think new or daily shows). Script runs on the first of every month to perform the deletion (and logging) of operations. ---------------------------------------------------------------------- ElevenNotes · 2023-10-16 21:10 I call the API to get the media details like added date and plays (how many time it was watched) and then simply call the Plex API to remove the files. ---------------------------------------------------------------------- curtwagner1984 · 2023-10-17 04:13 But if you delete from radarr it just deletes the links only,not the actual files,no? ---------------------------------------------------------------------- kslqdkql · 2023-10-17 10:31 Since it's been [hardlinked](https://www.redhat.com/sysadmin/linking- linux-explained) you need to delete both the version in the torrent program's download directory and the movie directory. ---------------------------------------------------------------------- curtwagner1984 · 2023-10-17 10:36 Yeah well, for some reason people here downvoted me to oblivion for saying those are two separate actions. It seems the consensus is that if you configue it **correctly** you won't have to do it in two steps. ---------------------------------------------------------------------- Py-rrhus · 2023-10-17 11:07 If you don't want to have the two policies isolated, you can step-up to move the files. But, then, deactivate the seed policy, so only the action within *arr can delete the file. The torrent client might complain the file is missing, but then it's only an error in the interface. Another way, it to have the script triggered on both conditions, watch and seed ratio, to delete the file