Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save timelf123/774d62e23f75ee0d6e8e47e092e0f1f0 to your computer and use it in GitHub Desktop.
Save timelf123/774d62e23f75ee0d6e8e47e092e0f1f0 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment