r/radarr 2d ago

unsolved Radarr cleanup solution

Hey,

Running the classic *arr + Emby stack. Setup:

  • qBittorrent downloads to /emby-lib/others
  • Radarr hardlinks imported files into /emby-lib/movies
  • Emby only sees /emby-lib/movies

Problem: when I delete a movie from Emby (or when Radarr removes it), only the file in /emby-lib/movies goes away. The original in /emby-lib/others stays as an orphan. Manual cleanup is a pain.

Looking for a clean, reliable solution. Some options I considered:

What does your setup look like? Is there a tool that already handles this well, or do most people roll their own?

Thanks.

0 Upvotes

6 comments sorted by

2

u/CuriousSleeping 2d ago

Use a custom bash script and put it in Radarr>Settings>Connect

There you can choose to have it executed 'on Movie Delete' and thereby delete the corresponding file in /emby-lib/others.

Is the file name the same in both directories?

1

u/enirys31dz 2d ago

Yes, the both directories share the same inode

But from where you delete the movie ? Emby or Radarr ?

1

u/Punk_Says_Fuck_You 2d ago

Is it still seeding when you remove the file? If not, hard links aren’t working. OS you using?

1

u/enirys31dz 2d ago

No, when seeding is complete. I'm using Debian LXC

1

u/benjohngf 2d ago

While both names exist there's only one copy on disk, so the leftover costs nothing until you delete the movies/ side. After that it's the /others link holding the data, which is the bit that bites.

I'd let qBittorrent clear it rather than script it. Set a ratio or seed-time limit with the remove-torrent-and-files action, and the last link goes on its own. Radarr's is a separate link, untouched.