{"id":16828016,"url":"https://github.com/hyperlink/plex-tv-cleanup","last_synced_at":"2025-04-11T03:50:58.208Z","repository":{"id":53789168,"uuid":"57092825","full_name":"hyperlink/plex-tv-cleanup","owner":"hyperlink","description":"Automatically delete watched TV shows on Plex","archived":false,"fork":false,"pushed_at":"2021-03-13T17:25:19.000Z","size":69,"stargazers_count":5,"open_issues_count":12,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T01:51:10.375Z","etag":null,"topics":["nodejs","plex","plex-media-server","plex-tv","tv"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hyperlink.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-26T02:54:18.000Z","updated_at":"2024-09-05T04:24:12.000Z","dependencies_parsed_at":"2022-08-27T19:11:17.202Z","dependency_job_id":null,"html_url":"https://github.com/hyperlink/plex-tv-cleanup","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperlink%2Fplex-tv-cleanup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperlink%2Fplex-tv-cleanup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperlink%2Fplex-tv-cleanup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperlink%2Fplex-tv-cleanup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyperlink","download_url":"https://codeload.github.com/hyperlink/plex-tv-cleanup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248119403,"owners_count":21050754,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nodejs","plex","plex-media-server","plex-tv","tv"],"created_at":"2024-10-13T11:24:09.755Z","updated_at":"2025-04-11T03:50:58.193Z","avatar_url":"https://github.com/hyperlink.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Plex TV Show Cleanup\n\nNodeJs script to delete watched TV episodes from Plex. You can configure a whitelist to prevent deletion.\n\n* Automatically finds the TV Section in Plex\n* Gives a breakdown how much space each episode takes up\n* Deletes watched TV episodes\n* Performs a refresh of the TV section\n* Shows how much space was recovered\n\n[![Standard - JavaScript Style Guide](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n\n## Installation\n\n### Step 1\n\nInstall NodeJs and plex tv cleanup on your Plex server.\n\n```\nnpm i -g plex-tv-cleanup\n```\n\n### Step 2\n\nCreate a new JSON file in `~/.plex-tv-cleanup-config.json` and fill it with your information like below:\n\nExample:\n\n```json\n{\n  \"plex\": {\n    \"hostname\": \"127.0.0.1\",\n    \"username\": \"\u003cYour Username\u003e\",\n    \"password\": \"\u003cYour Password\u003e\",\n    \"serverName\": \"Mac Mini\",\n    \"managedUser\": {\n    \t\"name\": \"Family\",\n    \t\"pin\": \"1234\"\n    }\n  },\n  \"dnd\": [\n    \"/Volumes/SavedTVShows\",\n    \"iZombie\",\n    \"The Expanse\",\n    \"Into the Badlands\"\n  ]\n}\n```\n\n* `plex.hostname` is **required**\n* `plex.serverName` is required if using managedUser and having multiple plex servers\n* `plex.username`, `plex.password` and `plex.managedUser` are required if you have [Plex Home](https://support.plex.tv/hc/en-us/sections/200641063) enabled\n* `dnd` is optional *Do Not Delete* whitelist of dir path or file names\n\n## Usage\n\nRun `./plex-tv-cleanup` to execute it.\n\nDry run to see what it would delete run `./plex-tv-cleanup --dry-run`\n\n## License\n\n### MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperlink%2Fplex-tv-cleanup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyperlink%2Fplex-tv-cleanup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperlink%2Fplex-tv-cleanup/lists"}