Skip to content

Instantly share code, notes, and snippets.

@pstadler
Last active June 4, 2026 04:15
Show Gist options
  • Select an option

  • Save pstadler/bc0afefe35f608e9552e764b31f45f19 to your computer and use it in GitHub Desktop.

Select an option

Save pstadler/bc0afefe35f608e9552e764b31f45f19 to your computer and use it in GitHub Desktop.
#!/bin/sh
# See: https://github.com/Radarr/Radarr/wiki/Mass-Delete-via-API
HOST=http://radarr.local:7878
API_KEY= # Settings > General
ids=$(curl --silent $HOST/api/movie -X GET -H "X-Api-Key: $API_KEY" \
| jq '.[] | select(.monitored == false) | .id')
for id in $ids; do
echo "Deleting movie id $id"
curl --silent $HOST/api/movie/$id -X DELETE -H "X-Api-Key: $API_KEY"
done
@jbeck22

jbeck22 commented Sep 13, 2018

Copy link
Copy Markdown

This removed all the movies that were not downloaded, not just the ones that were missing and unmonitored. Any updates or suggestions would be awesome!

@billettg

billettg commented Jun 18, 2022

Copy link
Copy Markdown

For this to work with Radarr 3.0.0 you will need to add /v3 to both API paths as per API docs.

API path should be /api/v3/movie/{id}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment